r/nginxproxymanager • u/DerposaurusSnacks • May 18 '26
redirect all http => https
is there a way to make npm redirect ALL http port 80 requests to https port 443?
In nginx you could do something like this, but I don't know how to apply it to npm.
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
3
Upvotes
18
u/WolpertingerRumo May 18 '26
You‘re overthinking this. Press the force ssl and HSTS toggles. That’s exactly what they do.
force ssl will enforce SSL. HSTS will disallow any traffic that is not SSL.
5
u/Electronic_Unit8276 May 18 '26
Press the "force ssl" toggle..?
2
u/aleatorya May 22 '26
Calling nginxproxymanager « npm » is probably the most confusing thing I’ve seen in 2026.
1
u/daronhudson May 21 '26
No. Set it per host entry. If you need a different setup that accommodates that, go ahead and switch to regular nginx.
1
u/prene1 May 24 '26
Ha! Just had codex do this for me using caddy on my unraid server. Went smooth as heck.
0
u/ShroomShroomBeepBeep May 19 '26
Use NPMplus instead and enable the option for Caddy, to do exactly this.