diff options
-rw-r--r-- | templates/vhosts/php_gallery2/partial.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vhosts/php_gallery2/partial.erb b/templates/vhosts/php_gallery2/partial.erb index 26d33ee..e17f0ec 100644 --- a/templates/vhosts/php_gallery2/partial.erb +++ b/templates/vhosts/php_gallery2/partial.erb @@ -5,12 +5,12 @@ <%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %> -<% if vhost_part != :ssl -%> # Always rewrite login's # Source: http://gallery.menalto.com/node/30558 RewriteEngine On + RewriteCond %{HTTPS} !=on + RewriteCond %{HTTP:X-Forwarded-Proto} !=https RewriteCond %{HTTP_COOKIE} ^GALLERYSID= [OR] RewriteCond %{QUERY_STRING} subView=core\.UserLogin RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L] -<% end -%> </Directory> |