[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: forcing http to go to https

Am Do, den 24.06.2004 schrieb Steven Stern um 17:34:

> >Very simple Steve :) The error occurs as you configured a loop. You put
> >in the redirect instructions inside the SSL vhost config while it must
> >be in the main httpd.conf, where it makes much sense. I use the exact
> >same syntax. I only would add a trailing slash to
> >https://webmail.mydomain.com (not just cosmetic).
> I'm not quite sure I understand. Can you post the relevant sections of
> httpd.conf or mark mine up to work? Thanks.

>    Steve


of course - maybe its too trivial :)

<Directory /var/www/html/horde/>
    RewriteEngine      on
    RewriteCond        %{SERVER_PORT} !=443
    RewriteRule         ^.* - [F]
    ErrorDocument    403 https://webmail.mydomain.com/

Put these lines in the /etc/httpd/conf/httpd.conf anywhere near the end.
Don't put it inside the SSL vhost config!


Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) on Athlon CPU kernel 2.6.6-1.435 
Serendipity 17:47:46 up 1 day, 16:25, load average: 0.95, 0.85, 0.83 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]