Apache virtual host problem
Hi All!Well, first of, my problem lies in the configuration of virtual hosts. I'm using name-based hosting, thus all domain names I host are on the exact same IP address. Anyway, my problem is that when I configure the Main server, without having configured any vhosts at this point, it works very well, finding the right DocumentRoot and all...
BUT, when I configure just one new virtual host for a client, at the bottom of my httpd.conf as vhost with its own DocumentRoot, ServerName etc... Everything goes down the hill!! Meaning that the Main Server, configured at the top of my httpd.conf, ALSO uses this new vhosts' DocumentRoot?
Apache documentation states, that this would happen when One uses the NameVirtualHost functionality, because it makes the first actual vhost the default main server, instead of the default one they specified in httpd.conf when apache was first installed.
So, how do I go about fixing this? I mean, my company site is configured at the top, as a default site, and clients I host(non-profit), is configured at the bottom as actual vhosts? Do I have to configure my company site/domain as the first vhost at the bottom also, and by that having the ServerName mentioned twice for the same domain?...
Hope someone can help me out?