Skip to content

After X number of minutes, NPM stops executing Custom Nginx Configuration #3435

@matthewpomar

Description

@matthewpomar

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:

  1. Setup Redirect Host as described above
  2. Test redirect scenarios..
  3. Wait 30 mins to a few hours
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions