Re: [squid-users] using header_replace?

From: Henrik Nordstrom <[email protected]>
Date: Thu, 27 Nov 2003 12:06:54 +0100 (CET)

On Wed, 26 Nov 2003, Brian Peterson wrote:

> Ideally, I'm trying to, based on ACL's, add a HTTP_VARIBLE_NAME=data to each
> request. Squid 2.5STABLE3. The documentation seems to point to
> header_replace.

header_replace can not add headers, just replace headers denied by
header_access.

> I've tried
> header_replace CLIENT_IP 1.1.1.1
> and squid says
> 2003/11/26 13:42:54| parseConfigFile: line 81 unrecognized: 'header_replace
> CLIENT_IP 1.1.1.1'

Any header names mentioned in header_access or header_replace must be
priorly known to Squid in the source code. This is a known limitation of
these directives.

> Is there a way to add header varibles with or without acls?

If you want to add (not replace) HTTP headers then you currently need to
modify the source to add the header.

Regards
Henrik
Received on Thu Nov 27 2003 - 04:07:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:39 MST