Mapping internal port to redirect to SSL

I have configured my Nginx with Letsencrypt SSL. Now I need help with redirect my internal port on which my application runs (8085) to SSL.
can anyone here kindly help.

Thanks
SGTPrasad

1 Like

I'm afraid this community is not for generic "how to configure nginx" questions. While we often help with configuration issues directly related to TLS ("SSL" is an old term), I'm not sure it applies with your question. Frankly, I'm not really sure what you're asking to begin with? Usually when nginx is configured as a reverse proxy for a different application, it's not necessary to enable TLS for that application, as the traffic is on localhost only.

1 Like

You can run https on any port, you just setup your server on that port and specify the certificate configuration then access it it as https://<yourdomain>:<port> which tells the browser to try to use TLS in the conversation.

3 Likes

That possibly could be done with the router's port forwarding; port forward Port 443 (public) to Port 8085 internal.

1 Like

It's probably better to have nginx in a reverse proxy to localhost than to expose the application to the public internet.

2 Likes

Yep; just offering options. :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.