Transmission WebUI & Nginx Subdomain

Discussion of the Web Interface for Transmission, formerly known as Clutch. This applies to all version of Transmission
Post Reply
btjunkie
Posts: 1
Joined: Sun Feb 23, 2014 6:29 pm

Transmission WebUI & Nginx Subdomain

Post by btjunkie »

Hello guys,

I'm currently using transmission-daemon on my debian dedicated server. The web interface works perfectly when i go to the following URL :

Code: Select all

<my-servers-ip>:9091/transmission/web/
I've put in place a reverse proxy using nginx to get a specific subdomain (bt.mydomaine.com) for that ugly URL, when i go to bt.mydomain.com, the transmission WebUI is displayed with this message :

Code: Select all

Connection Failed
Could not connect to the server. You may need to reload the page to reconnect.
Here is my nginx configuration :

Code: Select all

ssl_certificate /etc/nginx/conf.d/server.crt;
ssl_certificate_key /etc/nginx/conf.d/server.key;

server {
        listen 80;
        return 301 https://$host$request_uri;
}

server {
        listen   443;
        server_name     bt.mydomain.com;
        ssl on;

        location / {
                proxy_set_header X-Forwarded-Host $host;
                proxy_set_header X-Forwarded-Server $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass_header  X-Transmission-Session-Id;
                proxy_pass         https://<my-servers-ip>:9091/transmission/web/;

        }
}

Thank you very much for your help.
gilest
Posts: 4
Joined: Mon Feb 24, 2014 8:36 am

Re: Transmission WebUI & Nginx Subdomain

Post by gilest »

I have it working fine, but I am not using HTTPS.

Code: Select all

server {
      listen 80;
      server_name torrents.mydomain.com;
      location / { proxy_pass http://localhost:9091;  }
 }
Post Reply