Post Tue Sep 28, 2021 12:26 pm

Reverse Proxy Serviio via sub path

Hey,

I have a domain like apps.xyz.com that hosts a bunch of things.

Each app is located in a path underneath the hostname, and I'm using nginx to reverse proxy to the correct location.

The only app I can't get working is Serviio right now - I can get the assets such as HTML, CSS and JS to load, but the application seems to be making API requests directly to /rest/... where the app is now hosted at /serviio/console/...

Some of the other applications I set up didn't need any special configuration, but some needed me to set the web path in configuration which then allowed this to work simply. But I can't find any such configuration option for Serviio.

Is this possible? Any advice? I've had a search on the forum but it's mostly using subdomains instead of path to separate apps which is not what I want to do ideally...

Nginx config
  Code:
   
location /serviio/ {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_pass http://172.16.0.123:23423/;
}


Resulting failure example
  Code:
GET 404 - https://apps.xyz.com/rest/library-status


Need the application to be making the request to
  Code:
https://apps.xyz.com/serviio/rest/library-status


Thanks in advance