Originally posted by: Zucarita9000
Can I have a root directory for each virtual dir I create? It seems I can only have wwwroot as a root dir. I need to have multiple websites with their own root dir... how do I do this? Do I need Windows 2000 Server in order to be able to do this?
EDIT: I found this in another forum:
"The server version of IIS will allow you to set up multiple websites. The workstation version (W2K Pro/XP Pro) doesn't support multiple websites and you're stuck using "subwebs" for multiple sites."
Does this mean that I can only have one root dir (only a single website)? I believe so, am I wrong?
First of all, are you using Professional or Server? You meantioned a "server" in your first post, so I assumed you had 2000 Server. If not, and you are using Professional, then you
are limited to a single "web site." But let's be clear what this means. Suppose you are hosting three "sites" -- "site1", "site2", and "site3". With Professional, these will be accessed from browsers as:
www.mainwebsite.com/site1
www.mainwebsite.com/site2
www.mainwebsite.com/site3
However, there is no need for them to be run out of the wwwroot folder. They can be located anywere. That's the idea behind a "virtual directory." To the user, "site1" looks like a directory of "www.mainwebsite.com." But while wwwroot may be on drive c:, the "root directory" of "site1" can be anywhere, say "D:\websites\site1". To see this, just right click on "Default Website" and select "New Site". The wizard will prompt you for a directory; this will be the "root directory" of the site.
The limitation of this approach is that multiple web sites will have to be virtual directories of the main web site. What you can do with 2000 Server, that you cannot do with Professional, is create "virtual sites" (as opposed to "virtual directories"). This allows your sites to be accessed by unique domain names, like:
www.website1.com
www.website2.com
www.website3.com
all running off the same server with a single IP address.
If this webserver is running on a local lan, and will not be on the internet, you ought to be able to get by with "virtual directories." Of course, even on a lan, you could make use of virtual sites with a local DNS server.
Hope this helps. Keep asking until things are cleared up.