Link to home
Start Free TrialLog in
Avatar of sclarkny
sclarknyFlag for United States of America

asked on

How do I use folders to define websites?

I want to host several websites on my local machine. So I have created multiple folders under wwwroot for each site. For example:
 
wwwroot/site1
wwwroot/site2

Now when I hit the url www.site1.com I get the index.html under wwwroot not under wwwroot/site1. How do I do that? Or am I on he wrong track here.
Avatar of geowrian
geowrian
Flag of United States of America image

I'm assuming you are using IIS as the web server. If so, open the Internet Information Services Manager, expand "Sites", and create a new site. Then point it at each of those folders.

See: https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=776 (IIS 6)
http://technet.microsoft.com/en-us/library/cc772350%28v=ws.10%29.aspx (IIS 7)
Avatar of Jagadishwor Dulal
That is correct the web should not show you the root directory. As you mention it is correct wwwroot/site1 is www.site1.com why you need wwwroot there it have been managed by domain name which look for the root folder and your root is site1 so it retrieve file index.html and show to your user. Similarly second site is www.site2.com and others.
Avatar of sclarkny

ASKER

geowrian:

how do I do this using Win 7 Pro?
ASKER CERTIFIED SOLUTION
Avatar of geowrian
geowrian
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am running IIS7
The instructions above should work fine, then. So should the second link in my earlier posting. Let us know how it works out.