[TriLUG] Apache serving wrong website
Jeremy Portzer
jeremyp at pobox.com
Wed Mar 12 03:13:20 EDT 2008
Paul McLanahan wrote:
> When I wrestled with what sounds like a very similar problem recently,
> the problem turned out to be that I hadn't set Apache's ServerName
> directive (the one in the main conf, not the VirtualHost) correctly,
> and it was figuring out its own ServerName from /etc/hosts. That
> seemed to cause it to feel that one certain subdomain was the same as
> my default domain, even though I had a separate VirtualHost stanza for
> it.
>
This sounds pretty likely, Paul. The original poster said there is no
default domain in his configuration - but there always is, whatever the
DocumentRoot is set to in the main httpd.conf .
--Jeremy
More information about the TriLUG
mailing list