1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wetty_ynh.git synced 2024-09-03 18:16:29 +02:00

Fix internal redirection

This commit is contained in:
Félix Piédallu 2020-06-30 11:35:10 +02:00
parent 4afe62cb17
commit 55eb2113c3

View file

@ -7,9 +7,8 @@ location __PATH__/ {
}
# Internally redirect /wetty/ to /wetty because the app wants this
location =__PATH__/ {
rewrite ^__PATH__/$ __PATH__;
}
# break tells nginx to continue processing the location block
rewrite ^__PATH__/$ __PATH__ break;
proxy_pass http://localhost:__PORT__;
proxy_http_version 1.1;