-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Description
Hello people,
I posted this request on Reddit before bothering here because sometimes I think people make things more complex.
Said that I could pay for support if needed.
I'm using Nginx Proxy Manager (NPM) in Docker to manage my domains and reverse proxy configurations.
I have an application that generates URLs with, for example, :8080
at the end, and unfortunately, I cannot modify this behaviour within the application itself.
For example:
- The application generates:
https://example.fake-domain.com:8080
- I want it to redirect automatically to:
https://example.fake-domain.com
(without the port in the URL).
The current setup on Nginx Proxy Manager is as follows:
- Proxy Host Configuration:
- Domain Name:
example.fake-domain.com
- Scheme: HTTP
- Forward Hostname/IP:
my-app-container
- Forward Port: 8080
- Websockets Support: Enabled
- Block Common Exploits: Enabled
- Domain Name:
- SSL Settings:
- Certificate is valid for
example.fake-domain.com
. - SSL options like "Force SSL" and "HTTP/2 Support" are currently disabled.
- Certificate is valid for
I tried to add in
- Advanced Settings:
port_in_redirect off;
, in my mind, is to prevent Nginx from appending the port in redirects.
And in this case, when I try to access:shttps://example.fake-domain.com:8080
, I encounter the following error:
Secure Connection Failed
SSL_ERROR_RX_RECORD_TOO_LONG
So, I'm looking for a way to:
- Automatically redirect requests from
https://example.fake-domain.com:8080
tohttps://example.fake-domain.com
. - Avoid at all that specific port in a more complex URL like:
https://example.fake-domain.com:8080/something.html
tohttps://example.fake-domain.com/something.html
Any help would be greatly appreciated!