1

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.

1
  • There was a mistake in the explanation. Commented Dec 17, 2021 at 5:54

2 Answers 2

1

There was a mistake in the explanation.

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

Thank you.

0

Is there a mistake in this mod_proxy setting. Also, how do I output mod_proxy debug log details. "host" => "www.exapmle.com"

You need to go to your server at www.exapmle.com (sic) and see if it is receiving requests and what it is receiving.

In your lighttpd.conf make sure that you are loading "mod_proxy" in server.modules.

Test your lighttpd config on the command line: lighttpd -tt -f /etc/lighttpd/lighttpd.conf and review any warnings or errors.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.