On Sun, May 05, 2013 at 12:12:14AM -0700, Keith Lofstrom wrote:
> On Sat, May 04, 2013 at 08:23:12AM -0700, Michael Rasmussen wrote:
> > Cluestick?
> >
> > Given this configuration:
> >
> > NameVirtualHost *:80
> > Listen 80
> >
> > <VirtualHost *:80>
> > ServerName default.example.com
> > </VirtualHost>
> > <VirtualHost *:80>
> > ServerName www.example.net
> > ServerAlias testy.example.net
> > </VirtualHost>
> > <VirtualHost *:80>
> > ServerName www.example.org
> > ServerAlias new.example.org
> > </VirtualHost>
> >
> > Requests for www.* are served as I expect, the page(s) for the .net and
> > .org sites are delivered.
> >
> > However requests for the ServerAliases, new.example.org and
> > testy.example.net, are fufilled from default.example.com
>
> Among other things, each
> Virtualhost stanza has a DocumentRoot or some other handler in it.
> Not sure how your config finds the content it serves. I assume
> you left the handlers out of the above for simplicity.
I did.
I also retyped the relevant bits. What should have been there was:
<VirtualHost *:80>
ServerName www.example.net
ServerAlias testy.example.net. morehost.example.net
</VirtualHost>
While a trailing dot is used in Bind configs to root a FQDN, this is breakage
in Apache config.
Worse, using `apache2 -S` or `apachectl -S` to syntax check your configuration
yields a "Syntax OK" message.
So removing the trailing dot on testy.example.net resolved the problem.
--
Michael Rasmussen, Portland Oregon
Be Appropriate && Follow Your Curiosity
Other Adventures: http://www.jamhome.us/ or http://gplus.to/MichaelRpdx
A special random fortune cookie fortune:
Of course I believe in luck. How otherwise to explain the success of those you
dislike?
~ Jean Cocteau
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug