Skip to main content
Known Participant
January 27, 2008
Question

wwwroot folder

  • January 27, 2008
  • 3 replies
  • 313 views
hello,

I've noticed that when I am developing lots of sites in the root folder,
I started making different directories for each site.

wwwroot\
site1
site2

but then all my URL's end up being:

site.com/site1
web.com/site2

what does one do to prevent this from happening,
how do I develop lots of site out of one wwwroot folder??
This topic has been closed for replies.

3 replies

Participating Frequently
January 30, 2008
good job you're using apache as IIS on XP only lets you have one webroot - with apache you need to look into using virtual servers and host headers - you then tweak your hosts file and add eg, siteA.local to 127.0.0.1 and myabe siteB.local to 127.0.0.1 and then you configure each virtual server in apache config to listen for siteA.local or siteB.local etc and then serve up the relevant content from the SiteA or SiteB folder.

T0keyM0nAuthor
Known Participant
January 27, 2008
grr sorry, I'm on windows xp pro, using apache.
Inspiring
January 27, 2008
What is your OS and web server?