diff --git a/nginx.tmpl b/nginx.tmpl index 8a8de27..83cb075 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -171,7 +171,9 @@ server { listen [::]:80 {{ $default_server }}; {{ end }} access_log /var/log/nginx/access.log vhost; - return 301 https://$host$request_uri; + location / { + return 301 https://$host$request_uri; + } } {{ end }}