Squid reply_header_access configuration

squid

Can any one please explain what does the reply_header_access configuration directive does? (and yes, I have RTFM, but I still do not understand what it does.)

Best Answer

This directive allows squid to remove headers from the HTTP reply before returning it to the client. You might do this because you're using Squid as a reverse-proxy and you want to "anonymize" your web servers (removing the "Server" header, for example) or to hide the presence of the cache (removing headers like "Via", "X-Cache", etc, for example).

There is a "request_header_access" directive to do the same things to the client's request headers.

Both directives apply based on ACLs such that you can be very flexible in determine to which requests the directives will actually apply.

Related Topic