使用Nginx和XMLRPC的Rutorrent

时间:2015-07-24 22:02:29

标签: php linux nginx

我试图在最新的Arch Linux家庭服务器上设置rutorrent,但我无法让它运行起来我认为缺乏经验和过时的文档。

问题:

我无法与nxinx交谈。当我在nginx上显示rutorrent时,它将无法连接到rtorrent,并且会在许多其他插件错误中出现此错误:

Bad response from server: (200 [parsererror,getuisettings])

Nginx的错误日志:

2015/07/24 17:29:49 [error] 11837#0: *19 upstream prematurely closed connection while reading response header from upstream, client: 192.168.x.<my remote machine>, server: localhost, request: "GET / HTTP/1.1", upstream: "scgi://unix:/home/user/scgi.socket:", host: "192.168.x.<my local nginx server>"

访问nginx的URL索引时:

502 Bad Gateway

在rtorrent:

(17:50:40) Closed XMLRPC log.

配置文件:

以下是我的配置文件的相关部分:

.rtorrent.rc:

#encoding_list utf-8
scgi_local = /home/user/scgi.socket
execute = chmod,ug=rw\,o=,/home/user/scgi.socket
execute = chgrp,http,/home/user/scgi.socket
#scgi_port = 127.0.0.1:5000

nginx.conf:

http {

include       mime.types;
default_type  application/octet-stream;
sendfile        on;
#tcp_nopush     on;
#keepalive_timeout  0;
keepalive_timeout  65;
#gzip  on;

log_format   main '$remote_addr - $remote_user [$time_local]  $status '
 '"$request" $body_bytes_sent "$http_referer" '
 '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /etc/nginx/logs/access.log  main;
error_log   /etc/nginx/logs/error.log notice;

server {
    listen       80;
    server_name  localhost;
    #charset koi8-r;
    location / {
        root   /usr/share/nginx/html/rutorrent;
        index  index.html index.htm;
        include scgi_params;
        scgi_pass  unix:/home/user/scgi.socket;
    }

完整的rutorrent config.php文件:

http://pastebin.com/1tAZb6DM

不可否认,这大部分都是我的行话。我熟悉rtorrent,有点熟悉nginx,我知道网络的基本理论。然而,XML,scgi / unix套接字和php都超出了我的范围(我只知道python),而且我对开始学习的地方完全无能为力。我认为这可能与&#34; RCP2&#34;但我真的不知道。 blog.abevoelker.com没有在nginx.conf中设置RCP2。

基本上对我很温柔,我真的很感谢你们给我的任何帮助。我知道我是一个在黑暗中磕磕绊绊的新手,但我试图学习。

使用/混合的指南:

http://linoxide.com/ubuntu-how-to/setup-rtorrent-rutorrent/

https://blog.abevoelker.com/rtorrent_xmlrpc_over_nginx_scgi/

https://github.com/rakshasa/rtorrent/wiki/RPC-Setup-XMLRPC

https://github.com/Novik/ruTorrent/issues/974

0 个答案:

没有答案