I'm having a problem with setting up named virtual domains. The virtual
domains default to the global doc path, not the doc path in the VirtualHost
directive. The steps I took:
1. I commented out the global ServerName directive, leaving the global
document root intact.
[code]
#ServerName xxx.xxx.xxx.xxx:80
[/code]
2. I added the VirtualHost directives:
[code]
NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin [email]jjb@botteronet.com[/email]
DocumentRoot /var/www/html/primary.domain
ServerName my.domain.tld
ErrorLog logs/error_log
CustomLog logs/primary.domain_cust common
</VirtualHost>
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin [email]jjb@botteronet.com[/email]
DocumentRoot /var/www/html/virtual.domain
ServerName virtual.domain.tld
ErrorLog logs/virtual.domain_error
CustomLog logs/virtual.domain_cust common
</VirtualHost>
[/code]
At first, I thought maybe I neede to comment out the global document root
also, but that just resulted in object not found, so I put it back.
Any Ideas?
>> Stay informed about: problem with setting up named virtual domains