#154 Drop all path information on redirect to HTTPS
Merged 7 years ago by puiterwijk. Opened 7 years ago by puiterwijk.
puiterwijk/ipsilon fix-https-redirect  into  master

file modified
+1 -1
@@ -16,7 +16,7 @@ 

      WSGIProcessGroup ${instance}

      ${ssl_require}RewriteEngine on

      ${ssl_require}RewriteCond %{HTTPS} !=on

-     ${ssl_require}RewriteRule ^/?(.*) https://%{SERVER_NAME}/$$1 [R,L]

+     ${ssl_require}RewriteRule ^/?(.*) https://%{SERVER_NAME}/ [R,L]

  </Location>

  

  <Directory ${ipsilondir}>

This prevents some trickiness with mod_rewrite together with ScriptAlias.
It also makes sure that people configure HTTPS correctly everywhere,
because without this we would have still failed for anything that uses
POST.

Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com

rebased

7 years ago

Pull-Request has been merged by puiterwijk

7 years ago
Metadata