mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 01:38:15 -05:00
Redirect preserve path
This commit is contained in:
parent
c543a1dc34
commit
6783ffb0c1
10
TODO.md
10
TODO.md
@ -1,12 +1,10 @@
|
|||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
In order of importance, somewhat..
|
|
||||||
|
|
||||||
- Nginx config output:
|
|
||||||
- Redirection host preserve path nginx configuration
|
|
||||||
- Dashboard stats are caching instead of querying
|
- Dashboard stats are caching instead of querying
|
||||||
|
|
||||||
|
Next version:
|
||||||
|
|
||||||
- UI Log tail
|
- UI Log tail
|
||||||
- Custom Nginx Config Editor
|
|
||||||
- Enable/Disable a config
|
- Enable/Disable a config
|
||||||
|
|
||||||
Testing:
|
Testing:
|
||||||
|
@ -15,6 +15,10 @@ server {
|
|||||||
location / {
|
location / {
|
||||||
{% include "_forced_ssl.conf" %}
|
{% 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 %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user