OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: sjjh on March 04, 2022, 11:49:16 AM

Title: nginx plugin config: HTTP server -> HTTPS Only vs. Location -> Force HTTPS?
Post by: sjjh on March 04, 2022, 11:49:16 AM
Hello everybody,

I'm currently setting up the nginx plugin as reverse proxy. In the Web UI config I did find the two options
HTTP Server -> HTTPS Only
Location -> Force HTTPS

I'm wondering, what's the difference between these two, when to use which?

Thanks
Simon
Title: Re: nginx plugin config: HTTP server -> HTTPS Only vs. Location -> Force HTTPS?
Post by: fabian on March 05, 2022, 02:53:31 PM
One is only for specific subdirectories.
Some people have different applications on different context paths.
Title: Re: nginx plugin config: HTTP server -> HTTPS Only vs. Location -> Force HTTPS?
Post by: sjjh on March 08, 2022, 09:44:43 PM
Okay, thanks, I see. Makes sense to me. As I currently have a one to one relation between servers and locations this thought didn't cross my mind. :)
Simon