diff options
Diffstat (limited to 'templates/vhosts/proxy/proxy.erb')
-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 %>/ |