I'm needing a little help in understanding Apache's configuration
please.   I want to set up my various sites on my pcs as virtual hosts
in apache, but not sure

My directory structure is as follows:
c:/sites
c:/sites/intranet
c:/sites/clientsite1
c:/sites/clientsite2
...etc

and I understood I could set it up so I can find the sites in my browser with :
http://localhost (gives  a directory listing of c:/sites )
http://intranet
http://clientsite1
http://clientsite2
.... etc.

but i'm not sure what i should put in my http.conf file.  I have the
following at the very bottom of the file but it doesnt work - can
anyone tell me what I've got wrong please?

NameVirtualHost *:80

<VirtualHost *:80>
ServerName intranet
DocumentRoot /sites/intranet
</VirtualHost>

<VirtualHost *:80>
ServerName clientsite1
DocumentRoot /sites/clientsite1
</VirtualHost>

<VirtualHost *:80>
ServerName clientsite2
DocumentRoot /sites/clientsite2
</VirtualHost>


Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to