Use $server_name instead of hardcoded domain.

This commit is contained in:
Billy Zhou 2019-05-24 11:48:43 +02:00
parent cd896bc6e1
commit 5caaaeb2bd

View file

@ -28,7 +28,7 @@ server {
root /var/www/html;
}
return 301 https://example.com$request_uri;
return 301 https://$server_name$request_uri;
}