[horde] SSL and only SSL

Steven Stern subscribed-lists at sterndata.com
Thu Jun 24 19:01:21 PDT 2004


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

Here's the relevant parts of httpd.conf:

Alias /horde/ /var/www/html/horde/

<VirtualHost *:443>
   ServerAdmin  webmaster at mydomain.com
   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" in
Mozilla. If I use IE, then it loops forever with 

 68.164.xx.xx - - [24/Jun/2004:20:37:12 -0500] "GET / HTTP/1.1" 302 303 "-"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)"

in access_log.

I'm sure there's a problem in my thinking. Please lead me to the path of
enlightenment.
--
   Steve
   



More information about the horde mailing list