コンテンツにスキップ

「RTorrent/RuTorrent」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
en:RuTorrentへの転送ページ
 
編集の要約なし
1行目: 1行目:
[[Category:インターネットアプリケーション]]
#redirect[[en:RuTorrent‏‎]]
[[en:RuTorrent]]
[[ru:RuTorrent]]
{{Related articles start}}
{{Related|LAMP}}
{{Related|RTorrent}}
{{Related articles end}}
'''[https://github.com/Novik/ruTorrent ruTorrent]''' は [[rTorrent]] (コンソールベースの BitTorrent クライアント) のウェブインターフェイスです。rTorrent に内蔵されている XML-RPC サーバーを利用して対話します。

ruTorrent は軽量かつ高い拡張性を持ち、uTorrent と同じような見た目になるように作られています。

== インストール ==
AUR から {{AUR|rutorrent}} をインストールしてください。

== ウェブサーバーの設定 ==

=== Apache ===
[[LAMP]] のページに従って Apache と PHP をインストール・設定してください。

* {{ic|/etc/php/php.ini}} を編集して ''open_basedir'' 以下の値を含めて下さい:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

AUR から {{AUR|mod_scgi}} をインストールしてください

* {{ic|/etc/httpd/conf/httpd.conf}} で SCGI モジュールをロードします:
LoadModule scgi_module modules/mod_scgi.so

* rTorrent の XMLRPC インターフェイスを有効にしてください: [[rTorrent#XMLRPC インターフェイス]]

* {{ic|/etc/httpd/conf/httpd.conf}} に以下を追加して rTorrent で使っているポートで SCGI を有効にしてください:
SCGIMount /RPC2 127.0.0.1:5000

* 最後に以下のように ruTorrent フォルダを {{ic|/etc/httpd/conf/httpd.conf}} に追加します。最初の ''</Directory>'' の後に追加してください:
<IfModule alias_module>
Alias /rutorrent /usr/share/webapps/rutorrent
<Directory "/usr/share/webapps/rutorrent">
Order allow,deny
Allow from all
</Directory>
</IfModule>

Apache 2.4 の場合、以下のようにアクセス制御してください:
<IfModule alias_module>
Alias /rutorrent /usr/share/webapps/rutorrent
<Directory "/usr/share/webapps/rutorrent">
Require all granted
</Directory>
</IfModule>

{{Note|You should enable authentication through Apache if your site is public.}}

=== Nginx ===
* rutorrent のウェブルートのリンクを作成:
ln -s /usr/share/webapps/rutorrent/ /usr/share/nginx/html/rutorrent

* {{ic|/etc/php/php.ini}} を編集して 'open_basedir'' に以下の値を追加:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

* rTorrent の XMLRPC インターフェイスを有効化: [[rTorrent#XMLRPC インターフェイス]]

* nginx の設定に以下の location を追加:
location /RPC2 {
include scgi_params;
scgi_pass localhost:5000;
}

* nginx を再起動:
# systemctl restart nginx

== ruTorrent の設定 ==
上流の wiki [https://github.com/Novik/ruTorrent/wiki/Config] を参照してください。

== 参照 ==
* https://github.com/Novik/ruTorrent/wiki
* http://httpd.apache.org/docs/2.2/configuring.html

2015年12月6日 (日) 19:32時点における版

関連記事

ruTorrentrTorrent (コンソールベースの BitTorrent クライアント) のウェブインターフェイスです。rTorrent に内蔵されている XML-RPC サーバーを利用して対話します。

ruTorrent は軽量かつ高い拡張性を持ち、uTorrent と同じような見た目になるように作られています。

インストール

AUR から rutorrentAUR をインストールしてください。

ウェブサーバーの設定

Apache

LAMP のページに従って Apache と PHP をインストール・設定してください。

  • /etc/php/php.ini を編集して open_basedir 以下の値を含めて下さい:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/

AUR から mod_scgiAUR をインストールしてください

  • /etc/httpd/conf/httpd.conf で SCGI モジュールをロードします:
LoadModule scgi_module modules/mod_scgi.so
  • /etc/httpd/conf/httpd.conf に以下を追加して rTorrent で使っているポートで SCGI を有効にしてください:
SCGIMount /RPC2 127.0.0.1:5000
  • 最後に以下のように ruTorrent フォルダを /etc/httpd/conf/httpd.conf に追加します。最初の </Directory> の後に追加してください:
<IfModule alias_module>
  Alias /rutorrent /usr/share/webapps/rutorrent
  <Directory "/usr/share/webapps/rutorrent">
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>

Apache 2.4 の場合、以下のようにアクセス制御してください:

<IfModule alias_module>
  Alias /rutorrent /usr/share/webapps/rutorrent
  <Directory "/usr/share/webapps/rutorrent">
    Require all granted
  </Directory>
</IfModule>
ノート You should enable authentication through Apache if your site is public.

Nginx

  • rutorrent のウェブルートのリンクを作成:
ln -s /usr/share/webapps/rutorrent/ /usr/share/nginx/html/rutorrent
  • /etc/php/php.ini を編集して 'open_basedir に以下の値を追加:
/etc/webapps/rutorrent/conf/:/usr/share/webapps/rutorrent/php/:/usr/share/webapps/rutorrent/
  • nginx の設定に以下の location を追加:
           location /RPC2 {
               include scgi_params;
               scgi_pass localhost:5000;
           }
  • nginx を再起動:
# systemctl restart nginx

ruTorrent の設定

上流の wiki [1] を参照してください。

参照