On 11/03/2011 08:19 AM, David Phillips wrote:
Hi All,
I'm trying to have an ATS reverse proxy add an "x-forwarded-for"
header to the request being passed to the origin server.
I have the following line in my records.config file:
CONFIG proxy.config.http.insert_squid_x_forwarded_for INT 1
Whilst the request is being received (and served) by the origin
server, it does not contain the header - I've checked with a TCPDump
and ATS is not sending the header.
Hmmm, it seems to work for me:
+++++++++ Proxy's Request +++++++++
-- State Machine Id: 0
GET /a/lib/ycs/bench/500.bmp HTTP/1.1
User-Agent: curl/7.21.3 (x86_64-redhat-linux-gnu) libcurl/7.21.3
NSS/3.12.10.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7
Host: l.yimg.com
Accept: */*
Client-ip: 192.168.201.14
X-Forwarded-For: 192.168.201.14
Via: http/1.1 loki.ogre.com[C0A8C90E]
(ApacheTrafficServer/3.1.1-unstable [uSc s f p eN:tOc i p s ])
Strange.
-- Leif