Information about X-Forwarded-for
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.
-
Hello :) You will likely need to modify the LogFormat entry in your Apache configuration file. I found several results with potential solutions when searching for entries such as "LogFormat "%{X-Forwarded-For}" on Google. Remember to follow our documentation when editing the Apache configuration: Advanced Apache Configuration - EasyApache - cPanel Documentation Thank you. 0 -
In addition to the good information from cPanelMichael, you might want to look at mod_remoteip or mod_zeus 0
Please sign in to leave a comment.
Comments
2 comments