DeleGate reference manual version 9.9 / HTTP header rewriting
[CTX]
[ALL]
HTTP header rewriting
kill-[i][qr]head: listOfHeaders
erase header fields listed in listOfHeaders before forwarding
a request/response message to server/client. "kill-qhead" is applied
only to request message to server and "kill-rhead" is applied only to
response message to client.
If "i" is prefixed as "kill-iqhead:Pragma,Cache-Control", the specified
fields are erased before DeleGate interpret it as the HTTP headers.
Example:
HTTPCONF=kill-qhead:Referer
HTTPCONF=kill-qhead:If-*,Accept-*
HTTPCONF=kill-rhead:Set-Cookie
add-[i][qr]head:name:body
add a header name:body to forwarded request/response message.
Client's identity information can be inserted into body string
with "%format" notation.
If "i" is prefixed as "add-ihead:Pragma:no-cache", then the specified field
with the body is added to the input to be interpreted by DeleGate
as a HTTP header from the client or the server.
Example:
HTTPCONF="add-qhead:X-Forward-For:%a"