Fix redirect https on non standard port

This commit is contained in:
Emilien Mantel
2016-11-02 14:25:27 +01:00
parent e08401acf8
commit 817d56fb81

View File

@@ -140,7 +140,7 @@ server {
listen {{ port }};
{% endfor %}
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(' ') }}{% endif %};
return 301 https://{{ __main_name }}{% if '443' not in __listen_ssl %}:__listen_ssl[0]{% endif %}$request_uri;
return 301 https://{{ __main_name }}{% if '443' not in __listen_ssl %}:{{ __listen_ssl[0] }}{% endif %}$request_uri;
}
{% endif %}