RuTorrent 3.2 Multi-User problem (Lighttpd)

randac56

Member
May 25, 2018
915
0
16
Hello All

Well To Begin with my problem is .. the both rutorrent users are getting into the same WebUI and torrents of Usr1 and Usr2 one's are not working

Basically both users are using Usr1's rtorrent if i close rtorrent in User1 the webui won't work

i have changed all ports RPC as following

usr1 RPC2 port 5000
usr2 RPC3 port 5002

the thing is .. the plugin is using config.php in /var/www/rutorrent/conf/config.php instead on /var/www/rutorrent/conf/user/config.php

if i change the RPC and port in config.php to RPC2 and 5000 it loads usr1's rTorrent and torrents while if i change it to RPC3 and 5003 it loads usr2's rTorrent and Torrents so my question is how to make them work ?

i simply downloaded these

rutorrent-3.2.tar.gz
plugins-3.2.tar.gz

so can anyone help me with it ?
 

simur612

Member
May 25, 2018
879
0
16
Did you set the authentication in lighttpd ?

As it looks like your webserver does not know what user is logging in.
 

lisas4567

Member
May 25, 2018
773
0
16
Multiple user depends on web auth.

basically, you set up auth on / or rutorrent/

in lighttpd it looks something like this:
Code:
auth.debug = 2
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/webpasswd"

$HTTP["remoteip"] !~ "127.0.0.1" {
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "Rutorrent",
"require" => "valid-user"
)
)
}


then save your htpasswd based users in /etc/webpasswd

After that, create your directories:
Code:
mkdir /var/www/conf/users/$USERNAME/
mkdir /var/www/conf/users/$USERNME2

see http://redmine.lighttpd.net/wiki/1/Docs:ModAuth for more details