Forums » Development »
Added by georgexsh over 15 years ago
mod_setenv will only add a new header entry to exist one
eg: if request contains header'Host: foo'
we have a directivesetenv.add-request-header('host' => 'bar')
the result will be'Host:foo, bar'
of course it will triger 400 error if pass this request to a backend server.
As I need request header to be override, follow patch was crated to do the job
added a new directsetenv.set-request-header
as its name indicates, it will set/replace a request header rather add.
lighty1.5 is capable of this kind header rewrite using proxy_core.
mod_setenv.c.patch (2.84 KB) mod_setenv.c.patch |