deluge-web + nginx

General support for problems installing or using Deluge
Post Reply
hito

deluge-web + nginx

Post by hito »

Hi there,

I installed Deluge on my server and at the moment I'm trying to access deluge-web through my browser.

I create a Nginx config file with this :

Code: Select all

upstream deluge  {
  server localhost:8112;
}
server {
  server_name  deluge.foo.bar;
  location / {
    proxy_pass  http://deluge;
    proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
    proxy_redirect off;
    proxy_buffering 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;
    proxy_set_header        X-Deluge-Base   "/";
  }
}
I reaload Nginx and checked that Deluge is running. When I access deluge.foo.bar in my browser I'm getting a 502 Bad Gateway.
I checked Nginx's logs and I can see :

[error] 13874#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: deluge.foo.bar, request: "GET /deluge HTTP/1.1", upstream: "http://127.0.0.1:8112/deluge", host: "foo.bar"

I added http user to the deluge group but it doesn't change anything.

A clue ?

Thanks in advance !
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: deluge-web + nginx

Post by abubin »

deluge-web can be access using http already.

why do you need nginx?
Phixion
Member
Member
Posts: 22
Joined: Sat Jul 30, 2011 7:43 pm

Re: deluge-web + nginx

Post by Phixion »

Yep, install deluge-web and start it:

deluge-web --fork

then navigate to <IP>:8112
Post Reply