From 01255bb2f9c03f3a3bf0eb5b760ef4859ec06cec Mon Sep 17 00:00:00 2001 From: LuVar Date: Wed, 24 Feb 2016 10:11:46 +0100 Subject: [PATCH] added some hints for ngnix on ubuntu server --- RPC-Setup-XMLRPC.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/RPC-Setup-XMLRPC.md b/RPC-Setup-XMLRPC.md index 43b899d..45309b8 100644 --- a/RPC-Setup-XMLRPC.md +++ b/RPC-Setup-XMLRPC.md @@ -61,6 +61,24 @@ location /RPC2 { scgi_var SCRIPT_NAME /RPC2; } ``` +or (on ubuntu server 14.04) +``` +http { + server { + listen 0.0.0.0:8008; + server_name ngnix-rtorrent; + access_log /var/log/nginx/rtorrent.access_log; + error_log /var/log/nginx/rtorrent.error_log; + + location /RPC2 { + scgi_pass 127.0.0.1:5000; + include scgi_params; + } + } +} +``` + +Do not forget, that on http://localhost:8008/RPC2 you will not see anything (through in rtorrent.error_log you will see something as `upstream prematurely closed connection while reading response header from upstream, client: 192.168.93.104, server: ngnix-rtorrent, request: "GET /RPC2 HTTP/1.1", upstream: "scgi://127.0.0.1:5000", host: "192.168.93.242:8008"`. It is xmlrpc, not web service. You can test it by xmlrpc (see later)) ## Other notes