question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specific Location is working, General Location is giving 404 for same URI

See original GitHub issue

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 I have created a working Host. When I added a very specific location (down to the PHP page level e.g. /subfolder/page.php ) for a sub URI to go to a different backend container I am able to get locations to work, but when I create a generic location (at the /subfolder/ level), it is not able to work. As I am only making a small change, I am assuming its a bug.

Nginx Proxy Manager Version

To Reproduce Steps to reproduce the behavior:

  1. Create two backends, and get NPM to point to the first.
  2. Create a location in the host

image 4. Hit your site.com/othercontainer/test.php and it works 5. Then, Change the location to be generic 6. image 7. Now I can no longer get to site.com/othercontainer/test.php 8. I am getting a 404 Not Found which I believe is coming from site.com

Expected behavior I would have expected them to hit the same content

Screenshots As attached in description

Operating System Using NPM within Portainer on Docker Swarm, on CentOS hosts. All are latest versions.

Additional context None

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
chaptergycommented, Nov 10, 2021

Great to hear! Then I’ll close this for now. Be on the lookout for new releases, so you could potentially change back to the built in locations. Or leave it in the advanced config. Your choice 😉

0reactions
zane-shuscommented, Nov 10, 2021
location /app/ {
    proxy_pass      http://othercontainer/;
}

your a champion, thank you! Worked perfect.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nginx location 404 not found - Stack Overflow
Like that location = /50x.html . In a perfect world, that would be set up top, right after the general server block settings....
Read more >
404. That's an error. The requested URL was not found on this ...
As you might know, a 404 error is "File not found." This can happen when a file is deleted or there is an...
Read more >
HTTP Error, Gives 404 but the URL is working #98 - GitHub
Hi, I had a script running over the past weeks and earlier today it stopped working. I keep receiving HTTPError 404, but the...
Read more >
404 Page Not Found Error: What It Is and How to Fix It - Lifewire
The 404 Not Found error, also called Error 404 or an HTTP 404 error, means that the web page you were trying to...
Read more >
Why Does My Website Say 404: Page Not Found? - WebFX
In technical terms, 404: Page Not Found means the server that holds a website isn't showing the website. A 404 error can happen...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found