Forum

Reverse Proxy Transmission/Deluge

Mariano
31 January 2016, 02:34
Hi, Im new to hiawatha, I was using nginx with this config:
location /deluge {
proxy_pass http://127.0.0.1:8112/;
proxy_set_header X-Deluge-Base "/deluge/";


ANd similar for transmission.
But I can't get it working on hiawatha using this:

 DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#
Hostname = 127.0.0.1
#Read more at: https://www.vultr.com/docs/install-hiawatha-web-server-with-php-fpm-and-mysql-on-debian
WebsiteRoot = /media/repo
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
ExecuteCGI = yes
ReverseProxy ^/sonar http://127.0.0.1:8989 #This one works just fine
ReverseProxy ^/deluge http://127.0.0.1:8112

Hugo Leisink
31 January 2016, 21:09
If you change line 1663 of src/target.c (assuming you use v10.0) to
options.uri = session->request_uri;

does that solve your issue?
Mariano
31 January 2016, 21:44
Hugo, I will compile it again and report back
Mariano
31 January 2016, 22:16
Hugo, now transmission works with this config:

ReverseProxy ^/transmission http://localhost:9091


I couldn't get working Deluge, but is ok, I like Transmission as well.
Hugo Leisink
1 February 2016, 08:19
On second thought, the change I suggested is not correct. It breaks other things.
Mariano
1 February 2016, 15:17
Are you sure? Everything (what I use) is working.
forbidden.duckdns.org /sonar /transmission and PHPMyAdmin whit accesslist
Mariano
1 February 2016, 15:29
Strange, I went to src/target.c to check the line 1663, and apparently the I didn't save the changes.
So transmission is working with:
options.uri = session->uri;
But deluge isn't.
Hugo Leisink
1 February 2016, 16:14
Perhaps this deluge (I have no idea what that is) thing doesn't work well with reverse proxies?
Mariano
1 February 2016, 18:52
Deluge is a torrent client (just like transmission), and the WebUI is working just fine with Nginx / apache with reverse proxy.
This topic has been closed.