Book
- Apache - DNS settings
- Apache - SSL certificates
- Apache - Configuration files
- Apache - Virtual host template
- Apache - Authorization
- Apache - Localized error pages
- Apache - Single sign-on
- Apache - Automatic proxy configuration
- Apache - Installing SSL certificate in browsers
- Apache - Web applications
- Apache - User wiki
- Apache - Intrusion protection
- Apache - External resources
- Apache - Optimization
- Squid setup
wTorrent and RUtorrent: web UI for rtorrent
RuTorrent Installation
ruTorrent is preferred WebUI for rtorrent. Its installation is as simple as unpacking downloaded tarballs and changing a single parameter.
I chose the following components from download area (get all in a single package):
- rtorrent - the core of ruTorrent,
- rpc - with this plugin client the server php side of ruTorrent performs direct access to rtorrent via xml-rpc; without it you would have to configure a SCGI mount like for wTorrent, and this mount should be visible from client machine, which is very insecure;
- create - allows to create torrent files remotely;
- datadir - allows to check default torrent directory to a custom location;
- erasedata - allows to delete torrent data together with torrent;
- ratio - allows to control ratio limits for torrents or torrent groups;
- rss - allows to publish torrent upload/download events in form of rss;
- scheduler - allows reconfigure rtorrent bandwidth limit schedule from web interface;
- trafic - monitors and visualizes rtorrent traffic over time;
The following plugins were not chosen:
- dark palette - default palette is fine;
- geoIP - it is not supported by tpc plugin;
- show peers like wtorrent - is useless since private trackers have;
- throttle - my version of rtorrent does not support throttling;
Configuration... Edit config.php and change rtorrent connection parameters:
$scgi_port = 8501;$scgi_port = 5000;
[Here will follow instructions on tighter integratation with rtorrent...]
wTorrent Installation
Download wTorrent zip from wTorrent download page and extract into /var/www/bittorrent/wtorrent. Or, install r99 from svn (mirror):
mkdir -p /var/www/bittorrent cd /var/www/bittorrent svn co -r99 svn://wtorrent-project.org/repos/trunk/wtorrent chown -R apache:apache /var/www/bittorrent/wtorrent
Install apache and php prerequisites
yum install mod_scgi php-xmlrpc
Create apache configuration snippet /etc/httpd/vhosts/bittorrent.conf
SCGIMount /RPC2 127.0.0.1:8501 <Location /RPC2> Order deny,allow Allow from 127.0.0.1 192.168.1.1 Deny from all </Location> <VirtualHost *:80> ServerName bt.ourdom.com:80 DocumentRoot /var/www/dummy Include vhosts/common.inc RewriteEngine on RewriteRule ^/(.*)$ https://bt.ourdom.com/$1 [L,R] </VirtualHost> <VirtualHost *:443> ServerName bt.ourdom.com:443 DocumentRoot /var/www/bittorrent Include vhosts/ssl.inc <Location /> Include vhosts/authorize.inc </Location> </VirtualHost>
I deliberately put "/RPC2" location outside the virtual "bt" server. It becomes shared by other virtual servers, in particular by "localhost", which does not redirect to a secure location (the wTorrent internal http access does not support ssl and redirections).
Point your browser to http://bt.ourdom.com/wtorrent/install.php and set a few parameters
rTorrent scgi host: localhost rTorrent scgi port: 80 rTorrent scgi folder: /RPC2 Enable auth for the scgi folder: NO Folder to save uploaded torrents: torrents/ Folder where wTorrent is: /var/www/bittorrent/wtorrent/ Default folder to save torrent data: /var/www/bittorrent/downloads/
Remove or rename install.php

Comments
Post new comment