Fix existing redirect test.

This commit is contained in:
John Stucklen 2019-02-15 16:24:37 -05:00
parent 79be68fa6f
commit 4387d1cb91

View file

@ -200,7 +200,7 @@ server {
listen [::]:{{ $listen_port }} {{ $default_server }};
{{ end }}
access_log /var/log/nginx/access.log vhost;
return 301 https://$host:{{ $listen_port_ssl -}}$request_uri;
return 301 https://$host{{ if not (eq $listen_port_ssl "443") }}:{{ $listen_port_ssl }}{{ end }}$request_uri;
}
{{ end }}