diff --git a/templates/nginx.conf.template.ssl b/templates/nginx.conf.template.ssl index 8c11cb1..2d39a6e 100644 --- a/templates/nginx.conf.template.ssl +++ b/templates/nginx.conf.template.ssl @@ -36,7 +36,9 @@ http { {% endif %} {% if app_data.ssl and app_data.ssl_ready -%} - return 301 https://$host$request_uri; + location / { + return 301 https://$host$request_uri; + } {% endif %} }