mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #3175] Ability to change ssl port #2151
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#2151
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 @pietru2004 on GitHub (Sep 2, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3175
Is your feature request related to a problem? Please describe.
Router in my house uses 443 (https default port for panel access) and nextcloud suggests turning on HSTS.
Describe the solution you'd like
I want to ask for availability to set ssl redirect port for paths... so if for example http is on 80 and https is on 444 it would send to https://domain:444 instead of https://domain:443 (Browsers by default redirect to the 443 if no port is specified)
Describe alternatives you've considered
Changing router configuration.. and it is not possible - router managed by my dad.
@edsonsbj commented on GitHub (Oct 9, 2023):
To be able to run https on ports other than 80 and 443 without error, you need to follow the steps below:
1 >> Stop Nginx Container
2 >> Edit docker-compose.yml change the port 443 to 444, only the one on the left and on the right remains the same.
Example
3 >> Start Nginx Again
4 >> Access the website as follows https://mydomain.com:444.
Another point I saw in your problem is that you configured the host for Nextcloud, so you need to make sure that your settings are similar to this





Define Location = /.well-known/caldav
Forward Hostname / IP* = your ip 192.168.x.x/remote.php/dav/
Define Location = /.well-known/carddav
Forward Hostname / IP* = your ip 192.168.x.x/remote.php/dav/
Define Location = /.well-known/webfinger
Forward Hostname / IP* = your ip 192.168.x.x/index.php/.well-known/webfinger
Define Location = /.well-known/nodeinfo
Forward Hostname / IP* = your ip 192.168.x.x/index.php/.well-known/nodeinfo
Then add these entries to Nextcloud config.php
@pietru2004 commented on GitHub (Oct 9, 2023):
I found that there is config for setting port override in nextcloud and after adding it, It seems it works now.
Also for https redirect to be for port 444 I needed to rebind rule directory of nginx proxy manager and set it to my custom path...
@github-actions[bot] commented on GitHub (Jun 1, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Jun 4, 2025):
Issue was closed due to inactivity.