** SOLVED ** Help with multiple daemons
Posted: Fri Aug 26, 2011 8:37 am
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;
}
}
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;
}
}