I have a server that is behind my firewall. This server has several websites. I am using apache with virtual host on the server behind the firewall server. The firewall server is running squid. Request for web pages come through the firewall server (Squid) and are forwarded to the Apache server.
My problem is this: The apache logs on the the apache server behind the firewall show that referring host (ip) of the firewall server. I want this apache log to record the real (original) referring ip or hostname.
I have tried various parameters with the apache log settings , custom log etc with
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
no matter what I seem to try I get the ip or hostname of my firewall in the logs.
I about to give up! The squid log file on the firewall probably has the correct referrer but again, how do I get the referrer on the local apache logs?
This is all so that my Webalizer will give correct reports on countries etc of origin.
Hope this made sense!
Thanks
Bob Rynkiewicz