JustRandomName
February 17th, 2006, 02:35 PM
How do I configure apache to use sub-domains?
To be more clear:
If I have three projects stored on my hard-drive like so:
/home/user/dev/project1
/home/user/dev/project2
/home/user/dev/project3
Instead of using sub-dirs to access the projects (e.g. http://localhost/project1 etc) how would I use subdomains like:
http://project1.localhost
http://project2.localhost
http://project3.localhost
http://webmail.localhost
etc etc
I am not bothered about the outside world being able to view the sites (it is just dev stuff).
How would one go about this? I think it is something to do with the <VirtualHost *> in the httpd.conf file, but I am by no stretch of the imagination a apache admin.
Cheers
To be more clear:
If I have three projects stored on my hard-drive like so:
/home/user/dev/project1
/home/user/dev/project2
/home/user/dev/project3
Instead of using sub-dirs to access the projects (e.g. http://localhost/project1 etc) how would I use subdomains like:
http://project1.localhost
http://project2.localhost
http://project3.localhost
http://webmail.localhost
etc etc
I am not bothered about the outside world being able to view the sites (it is just dev stuff).
How would one go about this? I think it is something to do with the <VirtualHost *> in the httpd.conf file, but I am by no stretch of the imagination a apache admin.
Cheers