I've been trying to get this to work with reverse proxy on my nginx installation, but no luck so far.
It's set up like this:
location /rutorrent {
include /config/nginx/include/proxy-control.conf;
proxy_pass http://192.168.0.5:9080;
proxy_redirect default;
}
proxy-control.conf contains:
client_max_body_size 10m;
client_body_buffer_size 128k;
#Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
# Advanced Proxy Config
send_timeout 5m;
proxy_read_timeout 240;
proxy_send_timeout 240;
proxy_connect_timeout 240;
# Basic Proxy Config
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect http:// $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 32 4k;
When i visit mydomain.tld/rutorrent i get the nginx auth prompt but then it just throws a 404.
Any ideas on what i'm doing wrong?
I have reverse proxy working fine with CP, Sonarr, Plexpy, Trasmission and unRaid itself.
Edit: i can see in the docket log that it outputs the following error:
2016/10/11 01:11:23 [error] 687#687: *1 "/usr/share/webapps/rutorrent/rutorrent/index.html" is not found (2: No such file or directory)
with the second rutorrent being my reverse proxy location (mydomain.tld/rutorrent) which is obviously breaking functionality since it's looking for ruTorrent in the wrong pace. How is this solved?