Apache 2
2014-01-01 22:50:06.978299+00 by Dan Lyke 3 comments
Apache 2.2 to 2.4 upgrade. VirtualHost directives w/o "www." prefix not working. No help in upgrade guide. Argh.
2014-01-01 22:50:06.978299+00 by Dan Lyke 3 comments
Apache 2.2 to 2.4 upgrade. VirtualHost directives w/o "www." prefix not working. No help in upgrade guide. Argh.
[ related topics: Free Software Open Source Work, productivity and environment Douglas Adams ]
comments in ascending chronological order (reverse):
#Comment Re: made: 2014-01-01 23:15:46.493053+00 by: meuon
Typically, ServerAlias
takes care of that for me... on version 2.2.x
as in ServerAlias domain.ext wwww.domain.ext
no clue yet in 2.4.x
#Comment Re: made: 2014-01-01 23:25:42.765823+00 by: spc476 [edit history]
I always use the IP address in a VirtualHost directive (along with the port number). Sure, it's a pain if the server changes IP, but I'm not dependent upon DNS either.
It looks like:
<VirutalHost 66.252.224.242:80> ServerName conman.org Redirect permanent / http://www.conman.org/ </VirtualHost> <VirtualHost 66.252.224.242:80> ServerName www.conman.org ... </VirtualHost>
#Comment Re: made: 2014-01-02 16:26:22.44444+00 by: Dan Lyke
Turns out it was a misleading symptom (yes, damn it, you could resolve the virtual domain, you just couldn't figure out what to do with a request to that domain) and a boneheaded change in how mod_rewrite handles the base portion of the request.
Grrr...