diff --git a/roles/service-nginx/files/redirect-to-ssl.conf b/roles/service-nginx/files/redirect-to-ssl.conf index 60245f0..7cf185d 100644 --- a/roles/service-nginx/files/redirect-to-ssl.conf +++ b/roles/service-nginx/files/redirect-to-ssl.conf @@ -1 +1 @@ -return 301 https://$server_name$request_uri; +return 301 https://$host$request_uri;