[GLLUG] two domains on one webserver using vhosts
Seth Bembeneck
sbdataspiller at sbcglobal.net
Sun Mar 7 21:20:29 EST 2004
I have two domains that I'm trying to server for.
My old vhosts.conf file was:
NamedServer *:*
<VirtualHosts *:*>
ServerName sdbnetworks.net
DocumentRoot /home/httpd/htdocs
</VirtualHosts>
The next one is the one I want to change
<VirtualHosts *:*>
ServerName dfcw.sdbnetworks.net
DocumentRoot /home/httpd/htdocs/dfcw
</VirtualHosts>
<VirtualHosts *:*>
ServerName dfstats.sdbnetworks.net
DocumentRoot /home/httpd/htdocs/dfstats
</VirtualHosts>
It was working fine.
I changed it too
NamedServer *:*
<VirtualHosts *:*>
ServerName sdbnetworks.net
DocumentRoot /home/httpd/htdocs
</VirtualHosts>
Note the change:
<VirtualHosts *:*>
ServerName cwhq.net
DocumentRoot /home/httpd/htdocs/dfcw
</VirtualHosts>
<VirtualHosts *:*>
ServerName dfstats.sdbnetworks.net
DocumentRoot /home/httpd/htdocs/dfstats
</VirtualHosts>
When I try to go to cwhq.net, I get the page that sdbnetworks.net is
pointing too (or, the default vhost kicks in).
Why?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.egr.msu.edu/mailman-archives/linux-user/attachments/20040307/78b42183/attachment.htm
More information about the linux-user
mailing list