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

Reply via email to