2015-08-12, 04:42
How easy would it be to change the URL of the page for nzbget and transmission? I've been running into an issue with my webserver where I run everything as reverse proxies, everything works fine except for nzbget and transmission, since they don't offer options to change the webroot like sickrage and couchpotato do. The problem I have is that the aforementioned programs collide with their htpc counterparts since the address for HTPC is https://myserver.us/, I was using Apache 2.4 but it was becoming a PITA so I switched over to NginX. If someone can show me how to setup a redirect from https://myserver.us/htpc to https://myserver.us I'd do that also since it requires no code changes within HTPC manager.
If I change the location of nzbget to nzbget1 like I had with apache I just get a 404 because nginx is looking in my www directory instead of accessing the page served on another host, if I change the location of transmission to transmission1 I get a 502 bad gateway error.
Code:
location /nzbget {
proxy_pass http://192.168.1.100:6789;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /transmission {
proxy_pass http://192.168.1.100:9091;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
If I change the location of nzbget to nzbget1 like I had with apache I just get a 404 because nginx is looking in my www directory instead of accessing the page served on another host, if I change the location of transmission to transmission1 I get a 502 bad gateway error.