mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1593] Intercept errors with error page not working #1199
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rod-O on GitHub (Nov 18, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1593
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
I have this code on Advanced tab-> Custom Nginx Configuration that accounts for SPA routes
This was working on 2.9.9, upgraded to latest and now I have 404
Nginx Proxy Manager Version
2.9.12
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Simple page reload
@dodanex commented on GitHub (Dec 28, 2021):
I am having the same problem!
@Rod-O have you figured out how to redirect to index.html for SPA apps?
@Rod-O commented on GitHub (Dec 28, 2021):
No, I just use 2.9.9
@dodanex commented on GitHub (Dec 28, 2021):
hei @Rod-O , I found a solution, works in v2.9.13 (now latest) also.
Enter this in your Advanced Custom Nginx Configuration:
Replace the proxy_pass with your app.
I don't know if this is the best solution but this is all I have working.
Hope this will help you and others that have the same problem !
@chaptergy commented on GitHub (Dec 29, 2021):
Does the issue still exist in 2.9.13?
@Rod-O commented on GitHub (Dec 29, 2021):
@dodanex tested a workaround for 2.9.13, which means that still exists in 2.9.13
@chaptergy commented on GitHub (Dec 29, 2021):
I've tried debugging why this error occurs for the past hour but unfortunately I was not able to find anything and have no clue what might cause this
@Rod-O commented on GitHub (Dec 29, 2021):
what's your environment ?
set a redirect on your main app page to a route like in a classic react app (not on the proxy manager)
www.example.com -> www.example.com/main/section
@dodanex commented on GitHub (Dec 29, 2021):
Also, try to deactivate Force SSL and HTTP/2 Support and try again to see if it works. I had some problems with v2.9.12 because of that, but on a different VPS I use v2.9.13 with those options activated and it works.
@chaptergy commented on GitHub (Dec 29, 2021):
I am using a random website, currently based.cooking and proxying that. I have added the error page to be
/rss.xmland am able to replicate the issue that way. However I am not finding the source of this issue. I have both force ssl and http 2 support disabled, so that can't be the issue.In case anyone without a SPA wants to replicate this, here is my full server config block I use:
@github-actions[bot] commented on GitHub (Mar 1, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 14, 2025):
Issue was closed due to inactivity.