Flutterby™! : Apache 2

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

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.

[ related topics: Free Software Open Source Work, productivity and environment Douglas Adams ]

comments in ascending chronological order (reverse):

#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

#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 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 policy

We will not edit your comments. However, we may delete your comments, or cause them to be hidden behind another link, if we feel they detract from the conversation. Commercial plugs are fine, if they are relevant to the conversation, and if you don't try to pretend to be a consumer. Annoying endorsements will be deleted if you're lucky, if you're not a whole bunch of people smarter and more articulate than you will ridicule you, and we will leave such ridicule in place.


Flutterby™ is a trademark claimed by

Dan Lyke
for the web publications at www.flutterby.com and www.flutterby.net.