Multiple Vhosts configuration

I have numerous namebased vhosts on apache 2.0 server for windows. I have been adding accounts maually into the httpd.conf which has become quite a pain recently as the numbers of vhosts inserted has increased considerably. This led me to find other ways of handling vhost. What I think would be best solution is to somehow apache read directories and convert them to name based vhost automatically for example

Directory: c:\vhosts\user1
Directory" c:\vhosts\user2

so when users type user1.example.com or example.com/user1 , Apache reads the content of user1 and if someone types user2.example.com or example.com/user2, Apache reads the user2 directory.

How can this be achieved Multiple Vhosts configuration

 

 

 

 

Top