Discussion:
Multiple Sites and wwwroot folder ...
(too old to reply)
E-Double
2006-09-08 20:41:01 UTC
Permalink
When setting-up multiple Websites on one IIS6 machine, should the additional
site folders (eg site2folder for site2.com, site3folder for site3.com,
etc...) should these be at the same folder directory as WWWroot or should all
of the seperate site folders be below WWWroot ? Historically on this server
the WWWroot was the default site folder only (eg site1.com) and the
additional sites have been setup at the same level as the WWWroot (eg
C:\Inetpub\WWWroot = default site1 only; C:\Inetpub\site2folder = second
site; etc...) but apparently this is causing some problems with publishing
to the secondary sites from Visual Studio (which apparently wants to only
publish to the default site URL which is WWWroot ...). TIA for any help on
this one ...
Kristofer Gafvert
2006-09-09 06:31:13 UTC
Permalink
Hello,

It depends on what you want it to be. If you want to reach the content of
site2.com by using www.site1.com/site2/ then the root folder of site2 has
to be beneath wwwRoot (unless you add a virtual directory to site1).

If you do not want to be able to read the content of site2 by using a URL
of site1, the root folder for site2 must not be beneath wwwroot (this is
the typical setup).

Separating websites should not cause any problems, so the problem you are
having is probably due to a setting in VS (and if it is not a setting, it
is a bad limitation of VS).

From an IIS point of view, it does not matter where you place each
website's root folder. The most common is however to separate the root
folders (in your example, they are at the same level and not beneath
wwwroot).

Clarification: root folder, which was used in this text, is also called
"home directory".
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Post by E-Double
When setting-up multiple Websites on one IIS6 machine, should the additional
site folders (eg site2folder for site2.com, site3folder for site3.com,
etc...) should these be at the same folder directory as WWWroot or should all
of the seperate site folders be below WWWroot ? Historically on this server
the WWWroot was the default site folder only (eg site1.com) and the
additional sites have been setup at the same level as the WWWroot (eg
C:\Inetpub\WWWroot = default site1 only; C:\Inetpub\site2folder = second
site; etc...) but apparently this is causing some problems with publishing
to the secondary sites from Visual Studio (which apparently wants to only
publish to the default site URL which is WWWroot ...). TIA for any help on
this one ...
E-Double
2006-09-11 12:45:01 UTC
Permalink
The sites are seperate domains and are reached by www.site2.com,
www.site3.com, etc... and I forgot to mention that the IIS6 sites/servers
are in an NLB cluster. Would that change anything ?
Post by Kristofer Gafvert
Hello,
It depends on what you want it to be. If you want to reach the content of
site2.com by using www.site1.com/site2/ then the root folder of site2 has
to be beneath wwwRoot (unless you add a virtual directory to site1).
If you do not want to be able to read the content of site2 by using a URL
of site1, the root folder for site2 must not be beneath wwwroot (this is
the typical setup).
Separating websites should not cause any problems, so the problem you are
having is probably due to a setting in VS (and if it is not a setting, it
is a bad limitation of VS).
From an IIS point of view, it does not matter where you place each
website's root folder. The most common is however to separate the root
folders (in your example, they are at the same level and not beneath
wwwroot).
Clarification: root folder, which was used in this text, is also called
"home directory".
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
Post by E-Double
When setting-up multiple Websites on one IIS6 machine, should the additional
site folders (eg site2folder for site2.com, site3folder for site3.com,
etc...) should these be at the same folder directory as WWWroot or should all
of the seperate site folders be below WWWroot ? Historically on this server
the WWWroot was the default site folder only (eg site1.com) and the
additional sites have been setup at the same level as the WWWroot (eg
C:\Inetpub\WWWroot = default site1 only; C:\Inetpub\site2folder = second
site; etc...) but apparently this is causing some problems with publishing
to the secondary sites from Visual Studio (which apparently wants to only
publish to the default site URL which is WWWroot ...). TIA for any help on
this one ...
Jeff Cochran
2006-09-10 13:39:37 UTC
Permalink
On Fri, 8 Sep 2006 13:41:01 -0700, E-Double
Post by E-Double
When setting-up multiple Websites on one IIS6 machine, should the additional
site folders (eg site2folder for site2.com, site3folder for site3.com,
etc...) should these be at the same folder directory as WWWroot or should all
of the seperate site folders be below WWWroot ? Historically on this server
the WWWroot was the default site folder only (eg site1.com) and the
additional sites have been setup at the same level as the WWWroot (eg
C:\Inetpub\WWWroot = default site1 only; C:\Inetpub\site2folder = second
site; etc...) but apparently this is causing some problems with publishing
to the secondary sites from Visual Studio (which apparently wants to only
publish to the default site URL which is WWWroot ...). TIA for any help on
this one ...
In IIS terms it makes no difference. And it shouldn't in Visual
Studio either, but that's a question for a VS support forum.

Jeff
E-Double
2006-09-11 12:31:02 UTC
Permalink
Cool, thanks guys. The VS programmer was telling me that all of the sites (
eg www.site1.com, www.site2.com, etc...) should all be under the wwwroot
folder wheras now they are at the same level as wwwroot/default first site
and I just wanted to make sure things are correct that way.

e.
Post by Jeff Cochran
On Fri, 8 Sep 2006 13:41:01 -0700, E-Double
Post by E-Double
When setting-up multiple Websites on one IIS6 machine, should the additional
site folders (eg site2folder for site2.com, site3folder for site3.com,
etc...) should these be at the same folder directory as WWWroot or should all
of the seperate site folders be below WWWroot ? Historically on this server
the WWWroot was the default site folder only (eg site1.com) and the
additional sites have been setup at the same level as the WWWroot (eg
C:\Inetpub\WWWroot = default site1 only; C:\Inetpub\site2folder = second
site; etc...) but apparently this is causing some problems with publishing
to the secondary sites from Visual Studio (which apparently wants to only
publish to the default site URL which is WWWroot ...). TIA for any help on
this one ...
In IIS terms it makes no difference. And it shouldn't in Visual
Studio either, but that's a question for a VS support forum.
Jeff
Continue reading on narkive:
Search results for 'Multiple Sites and wwwroot folder ...' (Questions and Answers)
6
replies
How to make my own computer a web server?
started 2007-09-12 22:37:18 UTC
computer networking
Loading...