-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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?
- I am sure I'm not using someone else's docker image.
- Have you searched for similar issues (both open and closed)?
- Yes
Describe the bug
I as looking for a way to setup a redirect of a subdomain host to a different subdomain host, as well as map a specific page from the old subdomain to the new subdomain, but at a different relative path.
So, I have setup a Redirect Host, like:
help.example.com -> support.example.com
This works great!
However, I need to map an individual path from the old host to the new host a different location, something like:
http(s)://help.example.com/entries/12345678-Become-a-Rockstar
to
https://support.example.com/hc/en-us/sections/987654321-Become-A-Rockstar
So I created a new Custom Nginx Configuration for this part:
location = /entries/12345678-Become-a-Rockstar {
return 301 "https://support.example.com/hc/en-us/sections/987654321-Become-A-Rockstar";
}
After saving the rule, both scenarios work perfectly. Then after 10 to 15 minutes or so, the Custom Nginx Configuration stops working and only the base redirect will work.
Nginx Proxy Manager Version
v2.10.4
To Reproduce
Steps to reproduce the behavior:
- Setup Redirect Host as described above
- Test redirect scenarios..
- Wait 30 mins to a few hours
- Observe problem
Expected behavior
I would expect the Custom Nginx Configuration rule to work every time.
Screenshots
NA
Operating System
Using Docker on Synology NAS.
Additional context
NA