Squid: how to configure to remove httpd request headers.

Solution Unverified - Updated -

Issue

  • Our customer has a plan to update from RHEL5 to RHEL6, but the customer is concerned about compatibility of squid.
  • Could you please tell us if we can configure so that following httpd request headers are removed when the httpd request goes through squid server?
    • Uid
    • Client-Addr
    • Remote-Addr
  • In RHEL5, it can be done if we can configure as follows in /etc/squid/squid.conf.
header_access Uid deny all
header_access Client-Addr deny all
header_access Remote-Addr deny all
  • However, above configuration is not valild in RHEL6. If we configure them in squid configuration file of RHEL6 then following error occurs.
2013/04/01 09:45:22| ERROR: Directive 'header_access' is obsolete.
2013/04/01 09:45:22| ERROR: Directive 'header_access' is obsolete.
2013/04/01 09:45:22| ERROR: Directive 'header_access' is obsolete.

Environment

  • Red Hat Enterprise Linux 6.3
  • squid-3.1.10-1.el6_2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.