Proxy transmission through nginx

I was following the instructions on http://hugo.coding-badger.net/2010/09/29/proxying-transmission-web-interface-with-nginx/ to set up my transmission web gui to be forwarded by nginx.

The first example worked fine, but the second one gave me a “Could not connect to the server. You may need to reload the page to reconnect.” error.

I got it to work by making it look something like this.

server {
server_name  your.hostname;
location /rpc {
proxy_pass  http://127.0.0.1:9091/transmission/rpc;
}

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

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

The change is manually forwarding the subdirectories of /transmission since the proxied web gui for some reason looks for them in the web root.

One Reply to “Proxy transmission through nginx”

  1. This is exactly what was I needed !!! Without that location, transmission didn’t want to upload torrent files.

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

    Thank you very much, a good transmission + nginx config is not easy to find on the web 🙂