Hello everyone.
Can someone suggest the best way of reading the X-Forwarded-for header and putting the IP in the apache logs as well as the real IP as I've been experimenting with putting a proxy cache infront of my apache server to see if it speeds things up.
Problem is now of course all the requests in the logs show the proxy ip instead of the actual IP, ideally i'd like the logs to show the actuall ip and what x-forwarded-for is coming up with.
Can someone suggest the best way of reading the X-Forwarded-for header and putting the IP in the apache logs as well as the real IP as I've been experimenting with putting a proxy cache infront of my apache server to see if it speeds things up.
Problem is now of course all the requests in the logs show the proxy ip instead of the actual IP, ideally i'd like the logs to show the actuall ip and what x-forwarded-for is coming up with.