[GH-ISSUE #2798] [feature request] Global custom nginx config #1925

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

Originally created by @leoleoasd on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2798

Is your feature request related to a problem? Please describe.

I want to enable redirect to https on http request send to https port(497 error) for all hosts.

Describe the solution you'd like

Allow me setting

error_page 497 https://$host$request_uri;

for all hosts.

Describe alternatives you've considered

manually setting it for every host.

Additional context

Originally created by @leoleoasd on GitHub (Apr 3, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2798 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **Is your feature request related to a problem? Please describe.** <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> I want to enable redirect to https **on http request send to https port**(497 error) for all hosts. **Describe the solution you'd like** <!-- A clear and concise description of what you want to happen. --> Allow me setting ``` error_page 497 https://$host$request_uri; ``` for all hosts. **Describe alternatives you've considered** <!-- A clear and concise description of any alternative solutions or features you've considered. --> manually setting it for every host. **Additional context** <!-- Add any other context or screenshots about the feature request here. -->
kerem 2026-02-26 07:33:17 +03:00
Author
Owner

@the1ts commented on GitHub (Apr 3, 2023):

Is this not covered by advanced configuration documented on the website?

<!-- gh-comment-id:1493842416 --> @the1ts commented on GitHub (Apr 3, 2023): Is this not covered by [advanced configuration](https://nginxproxymanager.com/advanced-config/#custom-nginx-configurations) documented on the website?
Author
Owner

@leoleoasd commented on GitHub (Apr 3, 2023):

Ohh it is. I thought where would be a GUI for this.

<!-- gh-comment-id:1493844278 --> @leoleoasd commented on GitHub (Apr 3, 2023): Ohh it is. I thought where would be a GUI for this.
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#1925
No description provided.