Project

General

Profile

mod_proxy and Transmission

Added by Le_suisse almost 15 years ago

Hi,
I want use Lighttpd like a proxy for Transmission but i have a problem. mod_proxy is enabled and I use this config :

$HTTP["url"] == "^/transmission/web/" {
        proxy.server = ("" => (
                "host" => "127.0.0.1",
                "port" => "9091" 
        ))
}

When I start lighttpd, he doesn't start. error.log returns :
2010-07-05 17:14:19: (log.c.166) server started 
2010-07-05 17:14:19: (mod_proxy.c.283) unexpected type for key: proxy.server [host](string)
2010-07-05 17:14:19: (server.c.931) Configuration of plugins failed. Going down.

I don't understand what's wrong.

Others informations :
Debian Testing up to date

lighttpd/1.4.26 (ssl) - a light and fast webserver
Build-Date: Jun  3 2010 21:35:01

Any ideas ?
I'm sorry for my bad english ;) .


Replies (4)

RE: mod_proxy and Transmission - Added by nitrox almost 15 years ago

Try "port" => 9091. Without "" for the portnumber and watch the ().

proxy.server = ("" => ( (
                "host" => "127.0.0.1",
                "port" => 9091
        ))
     )

Beside that this might also include "/transmission/web/" in the url-part when proxied over to transmission, so make sure transmission can handle it.

RE: mod_proxy and Transmission - Added by Le_suisse almost 15 years ago

Thanks for you help.
I'm testing without "" for portnumber, same result.
Normally, no problem with Transmission. I checked on theirs wiki and forums : https://trac.transmissionbt.com/wiki/WebProxy

RE: mod_proxy and Transmission - Added by nitrox almost 15 years ago

You also watched the "()"?

RE: mod_proxy and Transmission - Added by Le_suisse almost 15 years ago

Yes I checked that too, it doesn't resolve my issue.

Edit : That's work \o/ . Thank's again. Why should I use an additional () ?

    (1-4/4)