summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-01-30 23:08:03 +0100
committermh <mh@immerda.ch>2011-01-30 23:08:03 +0100
commitea3ebee7153660f809d7f26224e7282f97029743 (patch)
treeb36b5cc128157241ff3ed2c9dee55500cd0f70ed /templates
parent3223bb26521cd7aed97c3d5bd7df73269991639d (diff)
adding htpasswd for proxy
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/proxy/proxy.erb12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/vhosts/proxy/proxy.erb b/templates/vhosts/proxy/proxy.erb
index 9a347ca..5b1465f 100644
--- a/templates/vhosts/proxy/proxy.erb
+++ b/templates/vhosts/proxy/proxy.erb
@@ -32,6 +32,12 @@
<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 -%>
</Proxy>
ProxyRequests Off
ProxyPass / <%= options %>/
@@ -76,6 +82,12 @@
<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 -%>
</Proxy>
ProxyRequests Off
ProxyPass / <%= options %>/