diff --git a/nginx.tmpl b/nginx.tmpl index 2f7fde2..1551362 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -487,7 +487,9 @@ server { include /etc/nginx/vhost.d/default; {{ end }} - return 301 https://{{ $first_host }}$request_uri; + location / { + return 301 https://{{ $first_host }}$request_uri; + } } {{ end }}