LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Fwd: Re: [ILUG] more https woes]

[Fwd: Re: [ILUG] more https woes]

Brendan Kehoe brendan at zen.org
Sun Apr 9 20:59:08 IST 2006


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




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell