Apache2 header information clear/hide

Apache2 header information clear/hide

am 16.09.2009 16:40:06 von Szabolcs BALLA

--B_3335964010_2405649
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit

Hi,

Is there any way to clear header information when I using ProxyPass and
ProxyPassReverse?
Here is ngreped info:
T xxx.xxx.xxx.xxx:46087 -> xxx.xxx.xxx.xxx:80 [AP]
GET / HTTP/1.1..Host: forwarded.domain..User-Agent: Mozilla/5.0
...Accept-Language: en-us..Accept-Encoding: gzip, deflate..Authorization:
Basic ..X-Forwarded-For: xxx.xxx.xxx.xxx.X-Forwarded-Host:
orig.domain..X-Forwarded-Server: servername..Connection: Keep-Alive....

I would like to clear X-Forwarded-For, Forwarded-Host, X-Forwarded-Server.
How can I do this?
Thanks,
Szabolcs


--B_3335964010_2405649
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable



Apache2 header information clear/hide


'>Hi,



Is there any way to clear header information when I using ProxyPass and Pro=
xyPassReverse?

Here is ngreped info:

T xxx.xxx.xxx.xxx:46087 -> xxx.xxx.xxx.xxx:80 [AP]

  GET / HTTP/1.1..Host: forwarded.domain..User-Agent: Mozilla/5.0=
..Accept-Language: en-us..Accept-Encoding: gzip, deflate..Authorization: Ba=
sic ..X-Forwarded-For: xxx.xxx.xxx.xxx.X-Forwarded-Host: orig.domain..X-Forw=
arded-Server: servername..Connection: Keep-Alive....     =
;            &nb=
sp;



I would like to clear X-Forwarded-For, Forwarded-Host, X-Forwarded-Server. =


How can I do this?

Thanks,

Szabolcs






--B_3335964010_2405649--

Re: Apache2 header information clear/hide

am 16.09.2009 17:45:18 von Tom Evans

On Wed, 2009-09-16 at 16:40 +0200, Szabolcs Balla wrote:
> Hi,
>
> Is there any way to clear header information when I using ProxyPass
> and ProxyPassReverse?
> Here is ngreped info:
> T xxx.xxx.xxx.xxx:46087 -> xxx.xxx.xxx.xxx:80 [AP]
> GET / HTTP/1.1..Host: forwarded.domain..User-Agent:
> Mozilla/5.0 ..Accept-Language: en-us..Accept-Encoding: gzip,
> deflate..Authorization: Basic ..X-Forwarded-For:
> xxx.xxx.xxx.xxx.X-Forwarded-Host: orig.domain..X-Forwarded-Server:
> servername..Connection: Keep-Alive....
>
> I would like to clear X-Forwarded-For, Forwarded-Host,
> X-Forwarded-Server.
> How can I do this?
> Thanks,
> Szabolcs

http://httpd.apache.org/docs/2.2/mod/mod_headers.html#reques theader

RequestHeader unset X-Forwarded-Server

HTH

Tom


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org