** SOLVED ** Help with multiple daemons

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Locked
markymarknz
Posts: 5
Joined: Fri Aug 26, 2011 8:24 am

** SOLVED ** Help with multiple daemons

Post by markymarknz »

I currently have a web interface running which works nicely redirecting traffic to HTTPS with nginx.

Browsing to http://example.com redirects to https://example.com/transmisson/web and the web interface works as expected.
Browsing to http://example.com/subsite redirects to https://example.com/subsite and asks for a logon for a second daemon running.

However after successful authentication I get error 409: Conflict complaining about the X-Transmission-Session-Id

I've been searching around a lot to try find a solution but am pretty stumped.
I'm guessing that the same session-id is being retained for the / and /subsite which it doesn't like?

Does anyone have any idea to get this working?

My proxy.conf file has:

proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

My virtual hosts file has:

server {
listen 80;
server_name example.com;
rewrite ^(.*) https://example.com$1 permanent;
}

server {
listen 443;
server_name example.com;

ssl on;
ssl_certificate /etc/ssl/certs/server.crt;
ssl_certificate_key /etc/ssl/private/server.key;

location / {
proxy_pass http://127.0.0.1:9091;
}

location /subsite {
proxy_pass http://127.0.0.1:9092;
}

}
markymarknz
Posts: 5
Joined: Fri Aug 26, 2011 8:24 am

Re: ** SOLVED ** Help with multiple daemons

Post by markymarknz »

I've worked out how to do this, so I thought I would post what needed to be done incase anyone else wanted to do the same thing.
I fixed the web interface by:
1. Updating to the latest version of transmission-daemon with the ppa
2. In the settings.json file for the second daemon updating the "rpc-url" to /subsite/transmission

Once that was setup I created a new init.d script for the second daemon called transmission-daemon1 and copied /usr/bin/transmission-daemon to /usr/bin/transmission-daemon1.

I currently have 3 daemons running so 3x different users can log into the web interface with their own username/password.
Seems to work nicely and resources are running fine.

Cheers
Locked