How do you replace the Host header of a request in lighttpd? I know of mod_setenv, which can add a Host header.
I've tried to use the following configuration:
setenv.add-request-header = ( "Host" => "example.org" ) proxy.server = ( "/http-bind" => (( "host" => "127.0.0.1", "port" => 5280 )))
After proxying a query with an original header of "site.com", the host header contains two values:
example.org. I only want one host header though.
Is there way to make this in lighttpd or I need to change the webserver to nginx?
Here is question http://redmine.lighttpd.net/boards/2/topics/2636
Here is request in bugtracker http://redmine.lighttpd.net/issues/650