From 1e9776ee82a102eb537a2b39c4d1cc81e262f405 Mon Sep 17 00:00:00 2001 From: Daniel Tsvetkov Date: Sat, 27 Jun 2020 20:58:16 +0200 Subject: [PATCH] nginx return 301 fix --- provision/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {