[ILUG] Squid reverse proxy

Robert Sweetnam linux at sweetnam.eu
Sat Jan 19 14:23:27 GMT 2008


Thanks to all those who replied.

Paulo, and John, both of your suggestions did the trick.

Thanks again,
Robert

Paolo Marchiori wrote:
> from http://wt.tuxomania.net/projects/squid/http_accel/setup.txt 
> (found googling for "apache customlog squid x-forwarded-for"):
>
> --begin--
> The only client Apache sees is Squid, thus the usal log file format
> definitions will log 127.0.0.1 as the ip address of all requests. More
> meaningful are the ip addresses of the original clients. That information
> is transmitted by Squid in the header named X-Forwarded-For. Use the
> following format to have that style:
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
> \"%{User-Agent}i"" cached
> --end--
>
> You can achieve a similar result in IIS as it has a log customization 
> setting too - I don't have any handy so I can't tell you the exact 
> solution, sorry.
> p.




More information about the ILUG mailing list