Apache 2
2014-01-01 23:50:06.978299+01 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 23:50:06.978299+01 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 descending chronological order (reverse):
#Comment Re: made: 2014-01-02 17:26:22.44444+01 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...
#Comment Re: made: 2014-01-02 00:25:42.765823+01 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 00:15:46.493053+01 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