Apache Virtual Hosts
I've recently had a server set up running FreeBSD and webmin.In the past I've had no trouble configuring virtual hosts, but the present... that's a different story.
I have two different virtual hosts:
<VirtualHost *.*.*.120>
ServerName www.domain1.com
ServerAdmin admin@domain1.com
DocumentRoot /home/domain1/public_html
CustomLog /var/log/domain1.com_httpd_logs combined
ScriptAlias /cgi-bin/ /home/domain1/public_html/cgi-bin/
</VirtualHost>
<VirtualHost *.*.*.122>
ServerName www.domain2.com
ServerAdmin admin@domain2.com
DocumentRoot /home/domain2/public_html
CustomLog logs/domain2.com_httpd_logs combined
ScriptAlias /cgi-bin/ /home/foo/public_html/cgi-bin/
</VirtualHost>
when I point my browser to domain1.com, everything is fine.
when I point my browser to domain2.com I get the site at domain1.com
when I point my browser to domain2's IP address I get domain2.com's site (as I should).
I get the nagging feeling that I am overlooking something very simple. The more I look the less I see, and the less I see the dumber I feel.
I'd like a little outside input on this matter.
Thanks
