jlesage / docker-nginx-proxy-manager

Docker container for Nginx Proxy Manager
MIT License
770 stars 173 forks source link

local server ports show up in the URL served to users #210

Closed mrneutron42 closed 3 years ago

mrneutron42 commented 3 years ago

I have NGINX Proxy Manager running in Ubuntu 20 following the instructions here: https://nginxproxymanager.com/setup/ I have a proxy host, sitting at port 8080.

I recently noticed that the local port number is being inserted into the URL served to users: "xyz.duckdns.org:8080/graphs" for example. The link with the ":8080" in it fails, because the correct link has no ":8080" in it.

I don't think this is expected behavior of reverse proxy, correct?

The NGINX GUI created a config file for each of the proxy hosts.
Is there some setting need to tweak in a config file?

excerpt from proxy host config file:

server {
  set $forward_scheme http;
  set $server         "192.168.8.70";
  set $port           8080;

  listen 80;
listen [::]:80;

  server_name xyz.duckdns.org;
mrneutron42 commented 3 years ago

Its starting to look like the NGINX web server (getting proxyed through the NGINX proxy manager) may be inserting the port numbers.