mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #172] How to use Custom Nginx Configuration #153
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#153
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 @jegged on GitHub (Jul 23, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/172
is there any examples to show how to use "Custom Nginx Configuration"

@jc21 commented on GitHub (Jul 23, 2019):
No there isn't. It's a feature that's been added for advanced users with previous nginx knowledge. If you tell me what you're trying to achieve, I can give you a specific example.
@AiRC-ai commented on GitHub (Jul 24, 2019):
Sorry to highjack this thread but, I have a similar question.
I am trying to have nxgin do a Rewrite of the URL every time.
the problem is one of my site behind the reverse proxy is set for'
(http://example.com:8080/) & (https://example.com:8443/). it's an unifi controller and I can change the port to 80 and 443 without the service failing. so I just forwarded 8443 and 8080 to 80 and 443 but I really need it to perform a Rewrite as well every time to fix the issue.
So I need nxgin to change the http://example.com:8080 & https://example.com:8443/) to just https://example.com.
Any help would be great.
@AiRC-ai commented on GitHub (Jul 24, 2019):
I just can seem to use a standard Nxgin Rewrite.
I used this but it did not work.
server {
listen 8080;
listen 80;
listen 8443 ssl;
listen 443 ssl;
server_name www.old-name.com old-name.com;
return 301 $scheme://www.new-name.com$request_uri;
}
@businesslogic360 commented on GitHub (Jul 26, 2019):
Hi, How can I use the same domain name with different ports? ID I want to add a new port the app shows that the domain is already in use.
@Wadera commented on GitHub (Sep 3, 2019):
Anyone know how to allow access to the network only from internal network?
I've tried something like:
Where
172.0.0.1/8is my Docker subnet (including OpenVPN),192.168.0.1/15is for my local behind NAT networks for home PC, Netbooks etc. Unfortunately - when I apply this config - I've got:404 Not Founderror :(@Wadera commented on GitHub (Sep 3, 2019):
For any interested. I've just dropped header and footer.
My current Custom Nginx Configuration in Advanced tab is:
where
88.99.123.123is my external IP address.This solve my issue. Host is accessible only from local / VPN network.
@aymenSo commented on GitHub (Feb 17, 2020):
Anyone was able o configure seafile server over nginx-proxy-manager?
nginx configuration for seafile is in the following link:
https://seafile.readthedocs.io/en/latest/config/nginx/
I am trying without success!
@geoffrothman commented on GitHub (Jan 20, 2021):
I'm assuming you had a semicolon at the end of the first line right?
@Wadera commented on GitHub (Jan 20, 2021):
Correct - fixed on comment ;)
@chaptergy commented on GitHub (May 10, 2021):
This issue has gone a little off the rails. I'll close this for now. If you have a specific question, please open a separate issue for this.
@SteveGBuck commented on GitHub (Jun 10, 2021):
Did you solve this? I too am setting up unifi controller in Docker behind NPM proxy and unsure how I might have all the required ports handled by the proxy.
I have a proxy host setup in NPM:
unifi.mydomain.com > https://container_name:8443
This works great for the web interface (because I can force SSL end to end there's no issue with the login error).
But I also need to redirect the following ports to the container too:
8080/tcp - Device command/control
8880/tcp - HTTP portal
3478/udp - STUN service
6789/tcp - Speed Test (unifi5 only)
I could just map the ports to the docker host instead of just expose. Or maybe use "streams" in NPM but this uses IP address only which could change on my container.
@gaozhidf commented on GitHub (Dec 17, 2021):
nginx-proxy-manager uses
Custom Nginx Configurationasadvanced_configinproxy_host.conftemplate,ref:
github.com/jc21/nginx-proxy-manager@e91019feb9/backend/templates/proxy_host.conf@marlonleite commented on GitHub (Sep 20, 2023):
hi, Does anyone know how to change the return ssl conf to port 308?
When I try to use nginx with ssl to APIs, POST redirect to GET. :/