Replaced nginx variable instead of template variable

This commit is contained in:
Frederik Bosch 2018-07-30 22:58:39 +02:00 committed by GitHub
parent 76d40cd151
commit 6f292f7630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ server {
listen [::]:80 {{ $default_server }};
{{ end }}
access_log /var/log/nginx/access.log vhost;
return 301 https://$server_name$request_uri;
return 301 https://$host$request_uri;
}
{{ end }}