summaryrefslogtreecommitdiff
path: root/templates/vhosts/proxy
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/proxy
parente6819524ebf02302d05d74d8c92f4c3dd90c06b4 (diff)
migrate authentication to partials
Diffstat (limited to 'templates/vhosts/proxy')
-rw-r--r--templates/vhosts/proxy/proxy.erb14
1 files changed, 2 insertions, 12 deletions
diff --git a/templates/vhosts/proxy/proxy.erb b/templates/vhosts/proxy/proxy.erb
index bb31b6b..1b1afd0 100644
--- a/templates/vhosts/proxy/proxy.erb
+++ b/templates/vhosts/proxy/proxy.erb
@@ -19,12 +19,7 @@
<Proxy *>
Order deny,allow
Allow from all
- <%- 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') %>
</Proxy>
ProxyRequests Off
ProxyPass / <%= options %>/
@@ -60,12 +55,7 @@
<Proxy *>
Order deny,allow
Allow from all
- <%- 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') %>
</Proxy>
ProxyRequests Off
ProxyPass / <%= options %>/