mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-01 15:04:04 +00:00
Redirect preserve path
This commit is contained in:
@@ -15,6 +15,10 @@ server {
|
||||
location / {
|
||||
{% include "_forced_ssl.conf" %}
|
||||
|
||||
return 301 $scheme://{{ forward_domain_name }}$request_uri;
|
||||
{% 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;
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user