[GH-ISSUE #2261] [enhancement|feature request] Add redirect option for access lists. #1609

Closed
opened 2026-02-26 07:31:45 +03:00 by kerem · 2 comments
Owner

Originally created by @TheRealVira on GitHub (Sep 12, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2261

Currently, whenever someone wants to access a host and doesn't meet its' dedicated access list requirements they receive a 403 forbidden error message. This may be fine for many, but I'd like to redirect the user to my default page instead. I'd imagine it to be similar to the "Default Site" setting.

Originally created by @TheRealVira on GitHub (Sep 12, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2261 Currently, whenever someone wants to access a host and doesn't meet its' dedicated access list requirements they receive a 403 forbidden error message. This may be fine for many, but I'd like to redirect the user to my default page instead. I'd imagine it to be similar to the "Default Site" setting.
kerem closed this issue 2026-02-26 07:31:45 +03:00
Author
Owner

@the1ts commented on GitHub (Sep 12, 2022):

@TheRealVira I would say use the optional custom http_top.conf as described here
perhaps the below will work:
error_page 403 http://google.com;

<!-- gh-comment-id:1243687738 --> @the1ts commented on GitHub (Sep 12, 2022): @TheRealVira I would say use the optional custom http_top.conf as described [here](https://nginxproxymanager.com/advanced-config/#custom-nginx-configurations) perhaps the below will work: `error_page 403 http://google.com;`
Author
Owner

@TheRealVira commented on GitHub (Sep 12, 2022):

Yup this works for me. Thanks for the quick reply @the1ts ! I guess if you really want different redirects depending on which access list you use you'd need to use different configs. But I am okay with just my one default page.

<!-- gh-comment-id:1243697334 --> @TheRealVira commented on GitHub (Sep 12, 2022): Yup this works for me. Thanks for the quick reply @the1ts ! I guess if you really want different redirects depending on which access list you use you'd need to use different configs. But I am okay with just my one default page.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1609
No description provided.