rutorren + 2 versions rtorrent?

das329717

Member
May 25, 2018
928
0
16
Hi, I have rtorrent working with 2 different config!
1 Listening 127.0.0.1:5000;
2 Listening 127.0.0.1:5001;

how to configure rutorrent? if possible

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Привет, у меня rtorrent работает с 2 разными конфигами!
1 слушает 127.0.0.1:5000;
2 слушает 127.0.0.1:5001;

Как настроить rutorrent? если это возможно
 

somus1735

Member
May 25, 2018
833
0
16
I suggest making TWO rutorrent as well (different folders on the web-server, different ports+scgi).

Don't think that using ONE rutorrent with TWO rtorrent is possible. Maybe wonslung or novik can proof otherwise, but i doubt it.
 

das329717

Member
May 25, 2018
928
0
16
Quote
I suggest making TWO rutorrent as well (different folders on the web-server, different ports+scgi).

Don't think that using ONE rutorrent with TWO rtorrent is possible. Maybe wonslung or novik can proof otherwise, but i doubt it.​


I thought about it. But I do not know how to do it.
my server lighttpd!
you give an example please?
 

shwetha17

Member
May 24, 2018
785
0
16
you just need to set 2 separate scgi ports.

with the lighttpd config for rpc it woudl look something like this:
Code:
scgi.server = (
"/RPC2"=>
(
"127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable"
)
),
"/RPC3"=>
(
"127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5001,
"check-local" => "disable"
)
)
)

then you need to edit the rutorrent files accordingly
the 2 major files = config.php and rs.js
in config.php you set the ip/port (127.0.0.1:5000 or 127.0.0.1:5001)
in rs.js you set the RPC mount (/RPC2 or /RPC3)


so just so you understand, you need 2 of everything.

2 unix users running rutorrent
each user has an .rtorrent.rc with an scgi port set
2 copies of the rutorrent files (i normally put them in a folder with the users NAME and link it to my webroot)
in each, you need to set rs.js and config.php to match the settings you set for your rpc mount in your webserver.
make sure you have mod_scgi set in the webserver
if you need more than 2, you can add more scgi mounts, but notice that each is separated by a comma, if you don't put the comma in the
right place, lighttpd will not start

lastly, if you don't want to use scgi mounts, just use the rpc plugin. This still requires a unique port and mount point, so the steps regarding config.php and rs.js are the same.