Im run my rutorrent multi user config with problem:
Bad response from server: (403 [error,getplugins]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
[03.02.2012 08:53:15] Bad response from server: (403 [error,getuisettings]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
rtorrent.rc
Code:
directory = /usr1/downloads
schedule = watch_directory,5,5,load_start=/usr1/torrents/*.torrent
schedule = untied_directory,5,5,stop_untied=/usr1/torrents/*.torrent
schedule = low_diskspace,5,60,close_low_diskspace=100M
port_range = 51515-61234
port_random = no
use_udp_trackers = no
encryption = allow_incoming,try_outgoing
dht = off
peer_exchange = no
encoding_list = UTF-8
scgi_local = /tmp/rpc.socket2
schedule = chmod,0,0,"execute=chmod,777,/tmp/rpc.socket2"
max_uploads = 100
download_rate = 0
upload_rate = 0
session = /usr1/.session
/var/www/user1/conf/config.php
Code:
<?php
// configuration parameters
// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 5, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);
// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);
$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true; // Save uploaded torrents into profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents into profile/torrents directory or make unique name
$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.socket2";
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);
$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);
$profilePath = '../share'; // Path to users profiles
$profileMask = 0777; // Mask for files and directory creation in users profiles.
// Both web-server and rtorrent users must have read-write access to its.
// For example, if web-server and rtorrent users are in some group then value may be 0770
?>
/etc/lighttpd/lighttpd.conf
Code: [Select]
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.modules += ( "mod_scgi" )
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket2",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC3" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket3",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC4" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket4",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC5" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket5",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
)
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl"
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
server.modules += ( "mod_auth" )
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/.auth"
auth.debug = 2
auth.require = ( "/user1/" =>
(
"method" => "basic",
"realm" => "user1 rutorrent",
"require" => "user=user1"
),
"/user2/" =>
(
"method" => "basic",
"realm" => "user2's rutorrent",
"require" => "user=user2"
),
"/user3/" =>
(
"method" => "basic",
"realm" => "user3's rutorrent",
"require" => "user=user3"
),
"/user4/" =>
(
"method" => "basic",
"realm" => "user4's rutorrent",
"require" => "user=user4"
),
)
help problem;/
Bad response from server: (403 [error,getplugins]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
[03.02.2012 08:53:15] Bad response from server: (403 [error,getuisettings]) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
rtorrent.rc
Code:
directory = /usr1/downloads
schedule = watch_directory,5,5,load_start=/usr1/torrents/*.torrent
schedule = untied_directory,5,5,stop_untied=/usr1/torrents/*.torrent
schedule = low_diskspace,5,60,close_low_diskspace=100M
port_range = 51515-61234
port_random = no
use_udp_trackers = no
encryption = allow_incoming,try_outgoing
dht = off
peer_exchange = no
encoding_list = UTF-8
scgi_local = /tmp/rpc.socket2
schedule = chmod,0,0,"execute=chmod,777,/tmp/rpc.socket2"
max_uploads = 100
download_rate = 0
upload_rate = 0
session = /usr1/.session
/var/www/user1/conf/config.php
Code:
<?php
// configuration parameters
// for snoopy client
@define('HTTP_USER_AGENT', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9) Gecko/2008052906 Firefox/3.0', true);
@define('HTTP_TIME_OUT', 30, true); // in seconds
@define('HTTP_USE_GZIP', true, true);
@define('RPC_TIME_OUT', 5, true); // in seconds
@define('LOG_RPC_CALLS', false, true);
@define('LOG_RPC_FAULTS', true, true);
// for php
@define('PHP_USE_GZIP', false, true);
@define('PHP_GZIP_LEVEL', 2, true);
$do_diagnostic = true;
$log_file = '/tmp/errors.log'; // path to log file (comment or make empty to disable logging)
$saveUploadedTorrents = true; // Save uploaded torrents into profile/torrents directory or not
$overwriteUploadedTorrents = false; // Overwrite existing uploaded torrents into profile/torrents directory or make unique name
$topDirectory = '/'; // Upper available directory. Absolute path with trail slash.
$forbidUserSettings = false;
$scgi_port = 0;
$scgi_host = "unix:///tmp/rpc.socket2";
// For web->rtorrent link through unix domain socket
// (scgi_local in rtorrent conf file), change variables
// above to something like this:
//
// $scgi_port = 0;
// $scgi_host = "unix:///tmp/rpc.socket";
$XMLRPCMountPoint = "/RPC2"; // DO NOT DELETE THIS LINE!!! DO NOT COMMENT THIS LINE!!!
$pathToExternals = array(
"php" => '', // Something like /usr/bin/php. If empty, will be found in PATH.
"curl" => '', // Something like /usr/bin/curl. If empty, will be found in PATH.
"gzip" => '', // Something like /usr/bin/gzip. If empty, will be found in PATH.
"id" => '', // Something like /usr/bin/id. If empty, will be found in PATH.
"stat" => '', // Something like /usr/bin/stat. If empty, will be found in PATH.
);
$localhosts = array( // list of local interfaces
"127.0.0.1",
"localhost",
);
$profilePath = '../share'; // Path to users profiles
$profileMask = 0777; // Mask for files and directory creation in users profiles.
// Both web-server and rtorrent users must have read-write access to its.
// For example, if web-server and rtorrent users are in some group then value may be 0770
?>
/etc/lighttpd/lighttpd.conf
Code: [Select]
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.modules += ( "mod_scgi" )
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket2",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC3" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket3",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC4" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket4",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
),
"/RPC5" =>
( "127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket5",
"check-local" => "disable",
"disable-time" => 0, # don't disable scgi if connection fails
)
)
)
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm",
" index.lighttpd.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
include_shell "/usr/share/lighttpd/use-ipv6.pl"
dir-listing.encoding = "utf-8"
server.dir-listing = "enable"
compress.cache-dir = "/var/cache/lighttpd/compress/"
compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" )
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
server.modules += ( "mod_auth" )
auth.backend = "plain"
auth.backend.plain.userfile = "/etc/lighttpd/.auth"
auth.debug = 2
auth.require = ( "/user1/" =>
(
"method" => "basic",
"realm" => "user1 rutorrent",
"require" => "user=user1"
),
"/user2/" =>
(
"method" => "basic",
"realm" => "user2's rutorrent",
"require" => "user=user2"
),
"/user3/" =>
(
"method" => "basic",
"realm" => "user3's rutorrent",
"require" => "user=user3"
),
"/user4/" =>
(
"method" => "basic",
"realm" => "user4's rutorrent",
"require" => "user=user4"
),
)
help problem;/