[PLUG] Apache loading default when Virtual host is defined
Michael Rasmussen
mikeraz at patch.com
Fri Sep 21 22:49:17 UTC 2007
Charlie Schluting wrote:
> On 9/20/07 5:27 PM, Michael Rasmussen wrote:
> >
> > This works fine in all but one case. The case that doesn't work is
> > tire.patch.com
> >
>
> Does 'apache2ctl reload' give warnings about VirtualHosts overlapping?
It does not.
However, while reading docs I came across the advice to run `apache2 -S` to
see how the config files are being generated and
tire:/etc/apache2/sites-enabled# /usr/sbin/apache2 -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server tire.patch.com (/etc/apache2/sites-enabled/000-default:2)
port 80 namevhost tire.patch.com (/etc/apache2/sites-enabled/000-default:2) ### what? / ah ha!
port 80 namevhost blog.patch.com (/etc/apache2/sites-enabled/blog.patch.com:2)
port 80 namevhost c1200.patch.com (/etc/apache2/sites-enabled/c1200:1)
port 80 namevhost dog.patch.com (/etc/apache2/sites-enabled/dog.patch.com:2)
port 80 namevhost fut.patch.com (/etc/apache2/sites-enabled/fut.patch.com:1)
port 80 namevhost jam.patch.com (/etc/apache2/sites-enabled/jam.patch.com:3)
port 80 namevhost kwiki.patch.com (/etc/apache2/sites-enabled/kwiki.patch.com:2)
port 80 namevhost mail.patch.com (/etc/apache2/sites-enabled/mail.patch.com:19)
port 80 namevhost mambo.patch.com (/etc/apache2/sites-enabled/mambo.patch.com:2)
port 80 namevhost mikeraz.patch.com (/etc/apache2/sites-enabled/mikeraz.patch.com:2)
[ major snippage ]
port 80 namevhost php.patch.com (/etc/apache2/sites-enabled/php.patch.com:2)
port 80 namevhost rca.patch.com (/etc/apache2/sites-enabled/rca.patch.com:2)
port 80 namevhost saunter.patch.com (/etc/apache2/sites-enabled/saunter.patch.com:2)
port 80 namevhost tblos.patch.com (/etc/apache2/sites-enabled/tblos.patch.com:2)
port 80 namevhost tire.patch.com (/etc/apache2/sites-enabled/tire.patch.com:2) #### What??
port 80 namevhost tiret.patch.com (/etc/apache2/sites-enabled/tiret.patch.com:2)
port 80 namevhost tmoin.patch.com (/etc/apache2/sites-enabled/tmoin.patch.com:2)
port 80 namevhost twiki.patch.com (/etc/apache2/sites-enabled/twiki.patch.com:2)
port 80 namevhost wiki.patch.com (/etc/apache2/sites-enabled/wiki.patch.com:2)
So the default is the name associated with the hostname even if you have a separate namehost defined?
I'll have to try this out on another physical server.
--
Michael Rasmussen, Portland Oregon
Be appropriate && Follow your curiosity
http://www.patch.com/words/
The fortune cookie says:
What on earth would a man do with himself if something did not stand in his way?
-- H.G. Wells
More information about the PLUG
mailing list