httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Robinson" <kenrb...@gmail.com>
Subject [users@httpd] Redirect of http to https going into an infinite loop
Date Mon, 18 Jun 2007 15:49:54 GMT
I'm trying to help my boss solve his rewrite problem. He's trying the
following code in the config file, but the results are an infinite
loop of rewrites:

<VirtualHost *:7778>
    ServerName virtual1
    Port 80
    ServerAdmin rakhtar@tangible-tech.com
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*)$ https://virtual1/$1 [L,R]

Is there any way of making this work without specifying a different target host?

Thanks in advance.
Ken

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message