header_replace

 < Day Day Up > 

header_replace

This directive works in conjunction with header_access . If you use header_replace , Squid replaces HTTP headers that are denied (removed) by an header_access rule. In other words, an HTTP header must be filtered out by header_access before it can be replaced by header_replace .

header_replace isn't especially flexible. You can only define one replacement value for each header. You can't, for example, use one value for some requests and a different value for others.

Changing HTTP request and response headers is a violation of HTTP.


Syntax

 header_replace   header-name     string   

Default

No default

Example

 header_replace User-Agent Nutscrape/1.0 (CP/M; 8-bit) 

Related

header_access

 < Day Day Up > 


Squid
Squid: The Definitive Guide
ISBN: 0596001622
EAN: 2147483647
Year: 2004
Pages: 401
Authors: Duane Wessels

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net