mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-10-17 03:24:04 +07:00
Avoid double / in redirect_https
This commit is contained in:
1 parent
aa4bc8d6a7
commit
8f837de390
1 file changed
+1
-1
@@ -127,7 +127,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 %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user