diff --git a/provision/templates/nginx.conf b/provision/templates/nginx.conf index b22dc98..5eb2821 100644 --- a/provision/templates/nginx.conf +++ b/provision/templates/nginx.conf @@ -5,7 +5,7 @@ server { server_name {{ project_domain }}; # redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. - return 301 https://; + return 301 https://$host$request_uri; } server {