Hi all.
I registered two domain names and have had them lead to the same
DocumentRoot for some months now. I finally decided to get around to
setting up virtual hosting, but I can't get it working. Going to either
domain name just leads to the DocumentRoot for the default server rather
than looking up a specified VirtualHost DocumentRoot. My VirtualHost
section of httpd.conf looks like this:
NameVirtualHost 192.168.12.86
<VirtualHost 192.168.12.86>
ServerName www.mostlycloudy.net
ServerAlias mostlycloudy.net *.mostlycloudy.net
DocumentRoot "/usr/www/mostlycloudy.net"
ErrorLog /var/log/apache/domain_mostlycloudy_error.log
TransferLog /var/log/apache/domain_mostlycloudy_access.log
#ScriptAlias /cgi-bin /var/www/mostlycloudy/cgi-bin
</VirtualHost>
<VirtualHost 192.168.12.86>
ServerName www.arenacwc.com
ServerAlias arenacwc.com *.arenacwc.com
DocumentRoot "/usr/www/arenacwc.com"
ErrorLog /var/log/apache/domain_arenacwc_error.log
TransferLog /var/log/apache/domain_arenacwc_access.log
#ScriptAlias /cgi-bin /var/www/arenacwc/cgi-bin
</VirtualHost>
If it's any use to anyone trying to help me, there should be a link to a
directory containing copies of all my Apache configs if you go to either
domain name.
So-- can anyone help me? Thanks in advance.