The not-match should also include slash. This prevents redirection to https://mydomain.com/plexpy/auth/logout:443

Eric Nemchik
2017-10-30 13:43:54 -05:00
parent 6babfc1971
commit 95376b9816

@@ -147,7 +147,7 @@ location /plexpy/ {
set $xforwardedssl "on";
}
proxy_set_header X-Forwarded-Ssl $xforwardedssl;
proxy_redirect ~^(http(?:s)?://)([^:]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
proxy_redirect ~^(http(?:s)?://)([^:/]+)(?::\d+)?(/.*)?$ $1$2:$server_port$3;
}
```