nginx return 301 fix

This commit is contained in:
Daniel Tsvetkov 2020-06-27 20:58:16 +02:00
parent b904cce8b1
commit 1e9776ee82
1 changed files with 1 additions and 1 deletions

View File

@ -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 {