[GH-ISSUE #2643] Custom port mapping ignored #1831

Closed
opened 2026-02-26 07:32:38 +03:00 by kerem · 6 comments
Owner

Originally created by @mindonwarp on GitHub (Mar 2, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2643

Hi guys, I'm sorry if I'm posting a duplicate but I couldn't find what I was looking for.

I just installed the proxy manger as a docker container and created custom port mappings like so:
image

However, I can't reach the admin page on 8181 like I entered but I can reach the page at 81. I suspect the other ports have the same issue. Is this a known issue or am I doing something wrong?

I can't use the default ports since those are used by the host machine and I can't change them.

Thanks!

Originally created by @mindonwarp on GitHub (Mar 2, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2643 Hi guys, I'm sorry if I'm posting a duplicate but I couldn't find what I was looking for. I just installed the proxy manger as a docker container and created custom port mappings like so: ![image](https://user-images.githubusercontent.com/1856574/222537570-95ec5690-192b-4bc9-830b-e7dacf7311cb.png) However, I can't reach the admin page on 8181 like I entered but I can reach the page at 81. I suspect the other ports have the same issue. Is this a known issue or am I doing something wrong? I can't use the default ports since those are used by the host machine and I can't change them. Thanks!
kerem closed this issue 2026-02-26 07:32:38 +03:00
Author
Owner

@sebasdt commented on GitHub (Mar 3, 2023):

Have you tried to restart the stack/containers? That did the job for me.

<!-- gh-comment-id:1453222765 --> @sebasdt commented on GitHub (Mar 3, 2023): Have you tried to restart the stack/containers? That did the job for me.
Author
Owner

@mindonwarp commented on GitHub (Mar 3, 2023):

Have you tried to restart the stack/containers? That did the job for me.

I have, several times. I have a feeling that these ports are fixed internally and can't be changed.
Perhaps that's the expected behavior?

<!-- gh-comment-id:1453245291 --> @mindonwarp commented on GitHub (Mar 3, 2023): > Have you tried to restart the stack/containers? That did the job for me. I have, several times. I have a feeling that these ports are fixed internally and can't be changed. Perhaps that's the expected behavior?
Author
Owner

@sebasdt commented on GitHub (Mar 4, 2023):

the ports on the inside the container are hardcodes into nginx proxy manager I beleve.
The other ones shouldn't have a issue. have you tried to access the site via a private/incognito window?
On my end it just works for changing the admin web port.

<!-- gh-comment-id:1454689334 --> @sebasdt commented on GitHub (Mar 4, 2023): the ports on the inside the container are hardcodes into nginx proxy manager I beleve. The other ones shouldn't have a issue. have you tried to access the site via a private/incognito window? On my end it just works for changing the admin web port.
Author
Owner

@sebasdt commented on GitHub (Mar 17, 2023):

Any updates? Otherwise please close the issue and mark ik as resolved.

<!-- gh-comment-id:1472935428 --> @sebasdt commented on GitHub (Mar 17, 2023): Any updates? Otherwise please close the issue and mark ik as resolved.
Author
Owner

@mindonwarp commented on GitHub (Mar 17, 2023):

Nginx does use the ports 80 and 443 internally and those can't be changed, but it should be possible to map those internal ports to any other host port. I wasn't able to achieve that.

I did however change the setup so that I can use the default ports on host as well, i.e. 80:80 and 443:443.

I'll close the issue with a comment: "can't reproduce".

<!-- gh-comment-id:1473284003 --> @mindonwarp commented on GitHub (Mar 17, 2023): Nginx does use the ports 80 and 443 internally and those can't be changed, but it should be possible to map those internal ports to any other host port. I wasn't able to achieve that. I did however change the setup so that I can use the default ports on host as well, i.e. 80:80 and 443:443. I'll close the issue with a comment: "can't reproduce".
Author
Owner

@mindonwarp commented on GitHub (Mar 17, 2023):

Others can't reproduce the issue.

<!-- gh-comment-id:1473284356 --> @mindonwarp commented on GitHub (Mar 17, 2023): Others can't reproduce the issue.
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#1831
No description provided.