Apache 2.2.3 running with a lot of virtual hosts (boiled down to 3 Zope instances), configured in separate files. Works quite well, with one exception: The redirection of mydomain.net to www.mydomain.com works, while www.mydomain.net to www.mydomain.com doesn't work.
Currently the configuration file for these two looks like this:
<VirtualHost *:80> ServerAdmin email@example.com ServerName mydomain.net Redirect permanent / http://www.mydomain.com/ </VirtualHost> <VirtualHost *:80> ServerAdmin firstname.lastname@example.org ServerName www.mydomain.net Redirect permanent / http://www.mydomain.com/ </VirtualHost>
I had a single vhost with ServerAliases before, and used a RedirectRule, which didn't work either.
/usr/sbin/apache2 -S now tells me:
... port 80 namevhost mydomain.net (/etc/apache2/common-file.conf:1) port 80 namevhost www.mydomain.net (/etc/apache2/common-file.conf:25) Syntax OK
All vhosts have a :1 there, with the only exception of the non-working redirection. What do I make of this information; how can I debug this?