Ticket #229 (closed enhancement: fixed)

Opened 3 months ago

Last modified 2 months ago

Trying to run two wtorrent instances w/ two rTorrent instances on the same server

Reported by: anonymous Assigned to: royger
Priority: minor Component: wTorrent
Version: Keywords:
Cc:

Description

I'm trying to run two wTorrent+rTorrent instances on the same server. I can run one instance of both just fine, but I can't figure out how to edit the scgi.server portion of the installation. I know the second rTorrent would require a second scgi.server port (set to 3000) but I don't know how to setup another

scgi.server = (

"/RPC2" => # RT_DIR

( "127.0.0.1" =>

(

"host" => "127.0.0.1", # Ip where rtorrent is listening "port" => 5000, # Port specified in .rtorrent.rc "check-local" => "disable"

)

)

)

Because when I put in another with the port edited to 3000, it throws out errors when I restart lighttpd... any pointers?

Attachments

Change History

23/10/08 03:14:44 changed by anonymous

and sorry if this is in the wrong section :/ I couldn't figure out if it was a task or an enhancement

23/10/08 13:24:58 changed by Saviq

It is neither task nor enhancement and it doesn't really belong here.

You need to modify the '/RPC2' too as that's what tells lighttpd that it should use this, or another, port.

23/10/08 13:27:53 changed by Saviq

OK, just to be clear: The correct conf should look like this:

scgi.server = (
    "/RPC2" =>
        ( "127.0.0.1" =>
            (
                "host" => "127.0.0.1",
                "port" => 5000,
                "check-local" => "disable"
            )
        )
    "/RPC2_2" =>
        ( "127.0.0.1" =>
            (
                "host" => "127.0.0.1",
                "port" => 3000,
                "check-local" => "disable"
            )
        )
    )

And you have to set the correct dir in relevant wtorrent config

23/10/08 14:12:35 changed by anonymous

that's what I tried but I get

Reloading web server configuration: lighttpd 2008-10-23 15:37:19: (configfile.c.827) source: /etc/lighttpd/lighttpd.conf line: 182 pos: 15 parser failed somehow near here: /RPC2_2 FAILED

25/10/08 19:14:49 changed by anonymous

Try this:

scgi.server = (
    "/RPC2" =>
        ( "127.0.0.1" =>
            (
                "host" => "127.0.0.1",
                "port" => 5000,
                "check-local" => "disable"
            )
        ),
    "/RPC2_2" =>
        ( "127.0.0.1" =>
            (
                "host" => "127.0.0.1",
                "port" => 3000,
                "check-local" => "disable"
            )
        )
    )

There's a comma needed between server definitions.

25/10/08 23:36:31 changed by anonymous

ah thank you :) That worked :D

26/10/08 02:02:43 changed by royger

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #229 (Trying to run two wtorrent instances w/ two rTorrent instances on the same server)




Action