Does apache log client IPs per request by default? If not, what are some common ways to do this?
Answer
Yes, Apache logs the IP addresses that request resources from it. By default, the logs are stored in /var/log/apache2/access.log
, but you can check your Apache config file at /etc/apache2/sites-available/your site
under the CustomLog
directive.
Attribution
Source : Link , Question Author : Yarin , Answer Author : bobmagoo