Fix redirection config bug

This commit is contained in:
Jamie Curnow 2018-08-27 16:59:05 +10:00
parent 2d8b5b814e
commit de367ae194

View File

@ -16,9 +16,9 @@ server {
{% include "_forced_ssl.conf" %} {% include "_forced_ssl.conf" %}
{% if preserve_path == 1 or preserve_path == true %} {% if preserve_path == 1 or preserve_path == true %}
return 301 $scheme://{{ forward_domain_name }}$request_uri$request_uri;
{% else %}
return 301 $scheme://{{ forward_domain_name }}$request_uri; return 301 $scheme://{{ forward_domain_name }}$request_uri;
{% else %}
return 301 $scheme://{{ forward_domain_name }};
{% endif %} {% endif %}
} }
} }