From ea3ebee7153660f809d7f26224e7282f97029743 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 30 Jan 2011 23:08:03 +0100 Subject: adding htpasswd for proxy --- templates/vhosts/proxy/proxy.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'templates') 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 @@ 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 -%> ProxyRequests Off ProxyPass / <%= options %>/ @@ -76,6 +82,12 @@ 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 -%> ProxyRequests Off ProxyPass / <%= options %>/ -- cgit v1.2.3