forcing http to go to https
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Thu Jun 24 15:49:51 UTC 2004
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
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/
</Directory>
Put these lines in the /etc/httpd/conf/httpd.conf anywhere near the end.
Don't put it inside the SSL vhost config!
Alexander
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040624/ca692c5a/attachment-0001.sig>
More information about the fedora-list
mailing list