aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule+nginx?  (Read 2004 times)

raidenii

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
amule+nginx?
« on: March 20, 2012, 03:21:42 AM »

Hi,

I've tried to use amule with nginx as reverse proxy with the following configuration:

Code: [Select]
        location /amule/ {
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://127.0.0.1:4711/;
                proxy_redirect default;
        }

But when I try to access, nginx simply prompts timeout in the log like following:
2012/03/19 19:16:02 [error] 5158#0: *36 upstream timed out (110: Connection timed out) while reading upstream, client: xx.xx.xx.xx, server: myhost, request: "GET /amule/ HTTP/1.1", upstream: "http://127.0.0.1:4711/", host: "myhost"

However if I directly access http://myhost:4711/ it works. I've tried to use curl to see what's been transferred, and all it gets is a normal header and followed by a bunch of binary gibberish, which is not what generally expected html.

Anyone has experience about this? Thanks.
Logged