redirect proxy need to work properly

This commit is contained in:
mulonemartin 2015-05-19 10:54:04 -03:00
parent 503072c03f
commit 60ef7a79de

View file

@ -139,6 +139,8 @@ server {
location / {
proxy_pass {{ $proto }}://{{ $host }};
proxy_redirect {{ $proto }}://{{ $host }}/ /;
proxy_read_timeout 60s;
{{ if (exists (printf "/etc/nginx/htpasswd/%s" $host)) }}
auth_basic "Restricted {{ $host }}";
auth_basic_user_file {{ (printf "/etc/nginx/htpasswd/%s" $host) }};