ok, sorted. putting the directory redirect into the virtual host stement
solved it
Bernhard Rohrer wrote:
> I have both virtual hosts
>> and even worse: the stoopid thing worked for a moment! without
> mod_rewrite ...
>> Brendan Kehoe wrote:
>> Bernhard Rohrer wrote:
>>> that leads to a redirect loop here, 'cos the server sees it again when
>>> the https site is opened. maybe i should take it out of the vhosts file
>>> and into apache2.conf?
>> I've got these in our .htaccess which seem to behave well, though I do
>> have two VirtualHost
>>>> RewriteEngine on
>> RewriteCond %{HTTP_HOST} ^mail.zen.org$ [OR]
>> RewriteCond %{HTTP_HOST} ^www.mail.zen.org$
>> RewriteRule ^(.*)$ https://www.zen.org/horde/$1 [R=301,L]
>>>> RedirectMatch permanent ^/mail$ https://www.zen.org/horde/>>>> I've also got
>>>> <VirtualHost *:80>
>> ServerName mail.zen.org
>> Redirect / https://www.zen.org/horde/>> </VirtualHost>
>> <VirtualHost *:443>
>> ServerName mail.zen.org
>> Redirect / https://www.zen.org/horde/>> </VirtualHost>
>>>> used by apache. I've also got separate entries for
>>>> <VirtualHost *:80>
>> ServerName www.zen.org
>> ...
>> </VirtualHost>
>> <VirtualHost www.zen.org:443>
>> ServerName www.zen.org
>> ...
>> </VirtualHost>
>>>> for catching the real destination.
>>>> B
>>>
--
Graylion's Fetish & Fashion Store
Goth and Kinky Boots, Clothing and Jewellery
http://www.graylion.net
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!