From a09aa90145fce749aa4c62d9212198e7782893cd Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Thu, 13 Mar 2014 12:16:32 -0500 Subject: [PATCH] Only redirect Plinth requests to HTTPS. Previously, we redirected all requests to HTTPS. Now, we redirect only when the user tries to connect to the Plinth site. --- share/apache2/plinth.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/share/apache2/plinth.conf b/share/apache2/plinth.conf index b489beb87..e2b0dcbb5 100644 --- a/share/apache2/plinth.conf +++ b/share/apache2/plinth.conf @@ -3,6 +3,7 @@ ## Force SSL RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ + ReWriteCond %{REQUEST_URI} ^/plinth RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] ## Shared options.