I’ve been trying to map Plex behind a reverse proxy for the past 2 days but so far my attempts have been futile. I think I have scavenged all the possible forums/threads out there looking for a solution but so far I have come up empty.
Thanks to whomever originaly created the rule set!
Your script seems to be similar to my attempt/result #1. I just tried copy pasting the whole thing, changing my domain and I am getting 401 unauthorized errors.
The big difference is that I want / to redirect to my NAS GUI and /plex to plex.
Remove /web from you proxy_pass. There are severall calls going to other context paths on the host:port.
Also, you might like to take a look on the network tab of your browsers developer mode to take a look what is actualy called and succeeds or fails.
Remove /web from you proxy_pass. There are severall calls going to other context paths on the host:port.
Also, you might like to take a look on the network tab of your browsers developer mode to take a look what is actualy called and succeeds or fails.
Removing /web doesn’t change much, plex remains reachable that way but my NAS GUI doesn’t. What am I looking for specifically in the network debug?
For attempt #1 (plex working, GUI isn’t), I am getting 404 errors on my GUI. And for attempt #2 (GUI working, plex isn’t), I am just seeing a 401 error?
Keep in mind: a Reverse Proxy makes all requests to the Plex server appear like they are coming from within the local LAN.
If you now combine this reverse proxy with a rule to disable the need to authenticate when a client accesses your Plex server from within the local network, you are wide open to unauthorized access.
(Settings - Server - ‘Show Advanced’ - “List of IP addresses and networks that are allowed without auth”)
Several uers seem to want to set up a reverse proxy for Plex. It seems several of them are usin nginx, and there can be found several working configuration for nginx. But all the one who want to use a different reverse proxy seem to be lost, me inclusive as I run pound reverse proxy (http://www.apsis.ch/pound/) (https://en.wikipedia.org/wiki/Pound_(networking)). Pound is a very simple resource saving reverse proxy, but needs to be configured completelly different than nginx. Therefore I am not familiar with nginx terminolgy and configuration.
To be able to set up pound or any other reverse proxy than nginx, it would be very helpfull, if someone could describe what the reverse proxy needs to do as a human-understandable description of the functionality, not just posting the code.