nginx-proxy-manager: rewrite directive is no longer working
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image?- Yes
- Are you sure you’re not using someone else’s docker image?
- Yes
- Have you searched for similar issues (both open and closed)?
- Yes
Describe the bug
the rewrite directive has no effect when put into the advanced tab
for example
rewrite ^/about$ /preferences last;
this works on LSIO SWAG, but doesn’t work on NPM.
this issue started around the beginning of November, maybe something changed in OpenResty ? or a regression in v2.9.11+ ?
Nginx Proxy Manager Version
v2.9.12
To Reproduce Steps to reproduce the behavior:
- Go to ‘any proxy host’
- Click on ‘advanced’
- put a rewrite directive like
rewrite ^/about$ /preferences last;
- test it and it won’t work.
Expected behavior
the rewrite directive should work, and rewrite URLs as instructed.
Screenshots
Operating System
Debian 11/docker
Additional context
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16
Tried on the
github-pr-1578
image and rewrites also dont work. I have a wss custom location that sends/ws
to a different port, and need to rewrite/ws
to root/