I've been working around this configuration but to no avail. What I am trying to achieve is to mask my url from http://subdomain.domain.com:9091/transmission/web/ to http://subdomain.domain.com/tr/
This is what I've come on with so far
nginx default.conf
location /tr/ {
proxy_read_timeout 300;
proxy_pass_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:9091/transmission/web/;
proxy_redirect off;
}
The transmission web interface did show up but the css, jss and img is all 404. is there any workaround for this?
Thanks in advance.