Use $server_name instead of hardcoded domain.
This commit is contained in:
parent
cd896bc6e1
commit
5caaaeb2bd
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ server {
|
|||
root /var/www/html;
|
||||
}
|
||||
|
||||
return 301 https://example.com$request_uri;
|
||||
return 301 https://$server_name$request_uri;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue