Take the 2-minute tour ×  I'm trying to setup a reverse proxy in
lighttpd, such that all requests (and only those requests) under
/mobile/video is redirected to the / directory of a secondary
web server. This is pretty easy in apache, but I can't for the
life of me figure out how to do so in lighttpd.  $HTTP["url"] =~
"^/wsmobile/video/" {        url.rewrite-once = (
"^/wsmobile/video/(.+)" => "/$1" )        proxy.server = ( "" =>
( ( "host" =>  "", "port" => 9091 ) ) )  I've tried using the
http["url"] directive, but lighttpd simply ignore those requests
and continue to pass the full url to the secondary server, which
of course chokes and throws 404s. However, if I do a global
rewrite then everything gets forwarded to the secondary server,
which is also not what I want.  How do I go about this task?
share|improve this question  1 Answer 1  up vote 1 down vote
accepted  url rewrites won't work in $HTTP["url"]. However, you
should be able to rewrite it globally in this manner:
url.rewrite-once = ( "^/wsmobil