On Mon, 07 Feb 2005 23:47:29 +0100
Martin Kanich <[EMAIL PROTECTED]> wrote:

> Nick Rout wrote:
> > I have squirrelmail set up on my gentoo server. the webserver is apache.
> > 
> > At present the webserver responds to http on port 80 and https on port 443 
> > (as usual). Squirrelmail works under either scheme.
> > 
> > I want to leave apache responding on port 80 for general use, as people 
> > shouldn't have to use https to see my normal web pages, but when someone 
> > opens the squirrelmail page on port 80 via http, I want them to be 
> > redirected to https on port 443, for obvious reasons.
> > 
> > can anyone tell me how i do this (or send me to an appropriate howto?)
> 
> Assuming you have squirrel under /squirrelmail, then append this to your 
> apache config:

Thanks, that seems to work.

> 
> # redirect to https when available (thanks [EMAIL PROTECTED])
> <IfModule mod_rewrite.c>
>    <IfModule mod_ssl.c>
>      <Location /squirrelmail>
>        RewriteEngine on
>        RewriteCond %{HTTPS} !=on
>        RewriteRule . https://%{HTTP_HOST}%{REQUEST_URI}  [L]
>      </Location>
>    </IfModule>
> </IfModule>
> 
> 
> --
> [email protected] mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>


--
[email protected] mailing list

Reply via email to