diff --git a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 index 77ce064..fe2a3c2 100644 --- a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 +++ b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 @@ -173,11 +173,11 @@ server { {% endfor %} {% endif %} - {% else %} +{% else %} location / { return 301 https://{{ item.servername }}$request_uri; } - {% endif %} +{% endif %} } {% if letsencrypt_acme_install %}