Avoid double / in redirect_https

This commit is contained in:
Emilien Mantel
2016-03-15 09:08:52 +01:00
parent aa4bc8d6a7
commit 8f837de390

View File

@@ -127,7 +127,7 @@ server {
listen {{ port }}; listen {{ port }};
{% endfor %} {% endfor %}
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(' ') }}{% endif %}; 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 %} {% endif %}