This commit is contained in:
Iddo Levin 2015-04-14 16:53:13 +03:00
parent 59f451084b
commit 1ec5f168a3

View file

@ -138,7 +138,7 @@ server {
include {{ printf "/etc/nginx/vhost.d/%s" $host }};
{{ end }}
@rev / {
location @rev {
proxy_pass {{ $proto }}://{{ $host }};
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
auth_basic "Restricted {{ $host }}";