Server Version#: plexmediaserver-1.21.3.4014-58bd20c02.x86_64
Player Version#: Version 4.51.1
I am trying to run plex behind an Nginx reverse proxy I have set up. I want to serve plex so that I access it through a subdirectory of the root.
https://m.linden.steele.co/plex/ → http://localhost:32400
So I have the following location block in my server block:
location /plex/ {
proxy_pass http://localhost:32400/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
However, when I navigate to https://m.linden.steele.co/plex with the network traffic analyzer tab open in the Firefox debugger, it shows the index.html file loading correctly, but requests for other resources are still trying to reach server root rather than the plex/ subdirectory.
How do I make plex aware that it is running from within a subdirectory of a reverse proxy? I don’t see anything in the settings that would indicate this.