The not-match should also include slash. This prevents redirection to https://mydomain.com/plexpy/auth/logout:443
@@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user