Evuraan::ഏവൂരാന് wrote:
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../
Aha. What you want is to make the origin server locate and use the
X-Forwarded-For: header. It is designed for this type of usage and
Squid already adds it by default to all requests. It contains the client
IP which sent the request into Squid.
it
Amos
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
--
Please be using
Current Stable Squid 2.7.STABLE5 or 3.0.STABLE10
Current Beta Squid 3.1.0.3 or 3.0.STABLE11-RC1