summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_gallery2/partial.erb
blob: 05cc9f4b48a4f68a7658b75c42b06b491ce76dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    <Directory "<%= documentroot %>/">
<%= scope.function_template('apache/vhosts/partials/std_override_options.erb') %>

<%= scope.function_template('apache/vhosts/partials/php_settings.erb') %>

<%= 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 %{HTTP_COOKIE} ^GALLERYSID= [OR]
        RewriteCond %{QUERY_STRING} subView=core\.UserLogin
        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R,L]
<% end -%>
    </Directory>