summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_gallery2
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-05-17 23:30:11 +0200
committermh <mh@immerda.ch>2011-05-17 23:30:11 +0200
commit09feb96edeaff10bde462aabb8c4d0c961eadd1a (patch)
tree07961b935baa987c667b5a217d7c067591b0ed31 /templates/vhosts/php_gallery2
parente6819524ebf02302d05d74d8c92f4c3dd90c06b4 (diff)
migrate authentication to partials
Diffstat (limited to 'templates/vhosts/php_gallery2')
-rw-r--r--templates/vhosts/php_gallery2/php_gallery2.erb28
1 files changed, 4 insertions, 24 deletions
diff --git a/templates/vhosts/php_gallery2/php_gallery2.erb b/templates/vhosts/php_gallery2/php_gallery2.erb
index db4068d..22d56ad 100644
--- a/templates/vhosts/php_gallery2/php_gallery2.erb
+++ b/templates/vhosts/php_gallery2/php_gallery2.erb
@@ -40,12 +40,7 @@
Options <%- unless options.to_s == 'absent' then -%><%= options %><%- end -%><%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%> +Includes<%- end -%>
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
php_admin_flag engine on
php_admin_flag safe_mode Off
php_admin_value output_buffering Off
@@ -114,12 +109,7 @@
Options <%- unless options.to_s == 'absent' then -%><%= options %><%- end -%><%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%> +Includes<%- end -%>
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
php_admin_flag engine on
php_admin_flag safe_mode Off
php_admin_value output_buffering Off
@@ -200,12 +190,7 @@
Options <%- unless options.to_s == 'absent' then -%><%= options %><%- end -%><%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%> +Includes<%- end -%>
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
# Always rewrite login's
# Source: http://gallery.menalto.com/node/30558
@@ -270,12 +255,7 @@
Options <%- unless options.to_s == 'absent' then -%><%= options %><%- end -%><%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%> +Includes<%- end -%>
<%- end -%>
- <%- unless htpasswd_file.to_s == 'absent' then -%>
- AuthType Basic
- AuthName "Access fuer <%= servername %>"
- AuthUserFile <%= real_htpasswd_path %>
- require valid-user
- <%- end -%>
+<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
# Always rewrite login's (see above)
RewriteEngine On
RewriteCond %{HTTP_COOKIE} =""