Re: forcing http to go to https

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

 



[ second time, due to mailman bug with gpg signing ]

Am Do, den 24.06.2004 schrieb Steven Stern um 16:41:

> I'm using IMP for web email and I want to force all connections to go
via SSL.

I do the same.

> Here's the relevant parts of httpd.conf:
> 
> Alias /horde/ /var/www/html/horde/
> 
> <VirtualHost *:443>
>    ServerAdmin  webmaster@xxxxxxxxxxxx
>    DocumentRoot /var/www/html/horde/
>    ServerName webmail.mydomain.com
>    Options Indexes FollowSymLinks
> </VirtualHost>
> 
> #<Directory /var/www/html/horde/>
> #    RewriteEngine       on
> #    RewriteCond         %{SERVER_PORT} !=443
> #    RewriteRule         ^.* - [F]
> #    ErrorDocument       403 https://webmail.mydomain.com
> #</Directory>
> 
> If you connect to https://webmail.mydomain.com, it works just fine.  I
want to
> make sure than any connection to http://mydomain.com/horde gets forced
to use
> the https://webmail connection.
> 
> However, if I enable the rewrite for the horde directory, any attempt
to
> access that directory results in an error, "Maximum redirection
exceeded".
> I'm sure there's a problem in my thinking. Please lead me to the path
of
> enlightenment.

>    Steve

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).

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 16:57:51 up 1 day, 15:36, load average: 1.73, 1.31, 1.17 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux