diff options
author | mh <mh@immerda.ch> | 2011-01-30 23:08:03 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-01-30 23:08:03 +0100 |
commit | ea3ebee7153660f809d7f26224e7282f97029743 (patch) | |
tree | b36b5cc128157241ff3ed2c9dee55500cd0f70ed /templates/vhosts | |
parent | 3223bb26521cd7aed97c3d5bd7df73269991639d (diff) |
adding htpasswd for proxy
Diffstat (limited to 'templates/vhosts')
-rw-r--r-- | templates/vhosts/proxy/proxy.erb | 12 |
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 %>/ |