Score:0

Lighttpd reverse proxy to another server faild

cn flag

I am trying lighttpd as a reverse proxy (v1.4.53)

lighttpd.conf:
$HTTP["url"] =~ "(^/example/)" {
    proxy.header = ("map-urlpath" => ( "/example/" => "/" ))
    proxy.server = ("" => (( "host" => "redmine.lighttpd.net" )))
}

However, this request returns response code 404.

http://localhost/example/ --> http://www.exapmle.com/   ...404
http://localhost/example/pro/lighttpd/ --> http://www.exapmle.com/pro/lighttpd/  ...404
http://localhost/example/pro/lighttpd/wiki --> http://www.exapmle.com/pro/lighttpd/wiki  ...404

Is there a mistake in this mod_proxy setting. Also, how do I output mod_proxy debug log details.

cn flag
There was a mistake in the explanation.
Score:0
cn flag

There was a mistake in the explanation.

$HTTP["url"] =~ "(^/example/)" {
    proxy.header = ("map-urlpath" => ( "/example/" => "/" ))
    proxy.server = ("" => (( "host" => "www.exapmle.com" )))
}

Thank you.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.