[GH-ISSUE #1318] Allow "return defined HTTP code without redirection" for custom location on redirect host #1052

Closed
opened 2026-02-26 06:35:34 +03:00 by kerem · 4 comments
Owner

Originally created by @Apollon77 on GitHub (Aug 14, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1318

Is your feature request related to a problem? Please describe.
I have an application that is forwarded by npm and that works great. Now I had the case where one "user" (identified by an own "id" in the application path) spammed the application. So I checked out if I can prevent that being forwarded to the real application by using custom location sessings ... but I learned that I could "only" forward a certain part to a host ...

Describe the solution you'd like
It would be great if "providing a redirect location" for a custom location is only one option. The second could be maybe to have it as a "return http code xyz" and so also allow "redirect host" functionality or maybe 404-host-functionality on a custom location

Describe alternatives you've considered
next I wated to check if I can do that maself by providing a custom nginx config for that case. Need to look into that next days.

Originally created by @Apollon77 on GitHub (Aug 14, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1318 **Is your feature request related to a problem? Please describe.** I have an application that is forwarded by npm and that works great. Now I had the case where one "user" (identified by an own "id" in the application path) spammed the application. So I checked out if I can prevent that being forwarded to the real application by using custom location sessings ... but I learned that I could "only" forward a certain part to a host ... **Describe the solution you'd like** It would be great if "providing a redirect location" for a custom location is only one option. The second could be maybe to have it as a "return http code xyz" and so also allow "redirect host" functionality or maybe 404-host-functionality on a custom location **Describe alternatives you've considered** next I wated to check if I can do that maself by providing a custom nginx config for that case. Need to look into that next days.
kerem 2026-02-26 06:35:34 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 6, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:1979932550 --> @github-actions[bot] commented on GitHub (Mar 6, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@Apollon77 commented on GitHub (Mar 6, 2024):

would be still an interesting feature

<!-- gh-comment-id:1980685447 --> @Apollon77 commented on GitHub (Mar 6, 2024): would be still an interesting feature
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2024):

Issue is now considered stale. If you want to keep it open, please comment 👍

<!-- gh-comment-id:2525382856 --> @github-actions[bot] commented on GitHub (Dec 8, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Dec 31, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:3701272120 --> @github-actions[bot] commented on GitHub (Dec 31, 2025): Issue was closed due to inactivity.
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#1052
No description provided.