[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Proxying DIR port on standard port 80



Hi,

> I'm no lighttpd expert, but when you combine $HTTP["host"] and
> $HTTP["url"] I think you should be able to build something like:
> 
> $HTTP["host" ] == "imhotep.mummy.org" {
>   $HTTP["url"] =~ "^/tor/" {
>        proxy.server = (
>           "" => (
>               "host" => "localhost",
>               "port" => 9030
>            )
>        )
>    }
> }

that was not working.

But this one works:
------------------------------------------------
$HTTP["url"] =~ "^/tor/" {
    proxy.server = ( "" =>
        (
            (
                "host" => "127.0.0.1",
                "port" => 9030
            )
        )
    )
}
------------------------------------------------

Notice the extra parenthesis level!

Thanks again!


-- 
BlueStar88 <BlueStar88@xxxxxxxxxxx>

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil