Search squid archive

Re: how to append to the requests to origin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the response.

The idea is to make entries in origin's access log easily
distinguishable and usefull. The prototype I've is as follows:

Anything from my squids to their origin servers should have a
"Bill-To" header, something like,

~$ curl -v  http://192.168.1.100/index.html -o /dev/null --header
"Bill-To:Western" --silent
* About to connect() to 192.168.1.100 port 80 (#0)
*   Trying 192.168.1.100... connected
* Connected to 192.168.1.100 (192.168.1.100) port 80 (#0)
 GET /index.html HTTP/1.1
 User-Agent: curl/7.16.4
 Host: 192.168.1.100
 Accept: */*
 Accept-Encoding: deflate, gzip
 Bill-To:Western <----------------------

The origin server would then log it in its access log as:

Bill-To:Western host:192.168.1.100 virt:127.0.1.1 <snip>


Thx../


2008/12/17 Amos Jeffries <squid3@xxxxxxxxxxxxx>:
>> Greetings,
>>
>> I've squid running in non-transparent mode. On a MISS, when it makes
>> requests to the origin, how can something else be passed along with
>> that request? Like a custom signature header? %{Foobar}i or even
>> somehting like:
>>
>> http.setHeader("X-Pew-Pew:Blah-blah-1")
>>
>> thx.!
>>
>
> Define "something" please.
> There are many ways of changing requests. Some are possible some are not.
>
> Amos
>
>

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux