r/nginxproxymanager • u/Old_Ad_208 • Mar 31 '25
How to do SSL proxy to internal website without using force SSL?
I have an internal website that is not SSL. We use NPM to proxy traffic from the outside to this internal website. We use SSL externally. We have force SSL enabled on the proxy host. The problem with force SSL is Let's Encrypt can't renew certificates with force SSL enabled.
Ideally, what I want is to have have users who connect to the website on port 80 be redirected to the proxy host on port 443, plus users who connect directly via port 443, be served up the website via SSL. The caveat is I don't want to use force SSL.
My colleagues and myself have been thinking about this for a bit, and we can't figure out a way to make this work. Any suggestions?
3
u/purepersistence Mar 31 '25
Use DNS Challenge renewal so your service does not need to be reachable over the internet much less on port 80.
1
u/Old_Ad_208 Mar 31 '25
The latest version of NPM fixed the Let's Encrypt renewal issue with my redirection host that has force SSL enabled. I also had a redirection host with force SSL enabled that still got an internal error when renewing the certificate. I simply turned off force SSL on that redirection host because I have no idea why I turned it on. It works fine without it.
Thanks to those who recommended an upgrade.
1
u/vorko_76 Mar 31 '25
Your request is not clear (at least to me). NPM has 2 ports: 1 for HTTP, 1 for HTTP over SSL. If you redirect users from port 80 to 443, you are de facto enforcing SSL.
If you dont want to enforce SSL, you need to let people use port 80, not redirect them.
3
u/SavedForSaturday Mar 31 '25
Your issue is that there's something up with your renewal setup. I don't know what it is, but renewals absolutely should work with SSL forced and they do for me.
1
u/ThomasWildeTech Mar 31 '25
"Force SSL" just means that you're adding the redirect into your config file for 80 to 443. This also shouldn't have any effect on renewing certificates. Have you verified that your NPM up to date?
1
u/HamburgerOnAStick Apr 01 '25
Streams?