Skip to content

Commit 6783ffb

Browse files
committed
Redirect preserve path
1 parent c543a1d commit 6783ffb

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

TODO.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# TODO
1+
# TODO
22

3-
In order of importance, somewhat..
4-
5-
- Nginx config output:
6-
- Redirection host preserve path nginx configuration
73
- Dashboard stats are caching instead of querying
4+
5+
Next version:
6+
87
- UI Log tail
9-
- Custom Nginx Config Editor
108
- Enable/Disable a config
119

1210
Testing:

src/backend/templates/redirection_host.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ server {
1515
___location / {
1616
{% include "_forced_ssl.conf" %}
1717

18-
return 301 $scheme://{{ forward_domain_name }}$request_uri;
18+
{% if preserve_path == 1 or preserve_path == true %}
19+
return 301 $scheme://{{ forward_domain_name }}$request_uri$request_uri;
20+
{% else %}
21+
return 301 $scheme://{{ forward_domain_name }}$request_uri;
22+
{% endif %}
1923
}
2024
}

0 commit comments

Comments
 (0)