From 60ef7a79de2f657d355831d6fd05a30714e36286 Mon Sep 17 00:00:00 2001 From: mulonemartin Date: Tue, 19 May 2015 10:54:04 -0300 Subject: [PATCH] redirect proxy need to work properly --- nginx.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx.tmpl b/nginx.tmpl index e7a4542..a910813 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -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) }};