Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does apache log client IPs per request by default? If not, what are some common ways to do this?

share|improve this question
2  
Why do you think it doesn't, and why haven't you done some cursory research? –  cjc Aug 21 '12 at 17:46
add comment

closed as not constructive by Alex, squillman, HopelessN00b, growse, rnxrx Aug 21 '12 at 22:12

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

up vote 3 down vote accepted

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.

share|improve this answer
    
Thanks bobmagoo--- –  Yarin Aug 21 '12 at 17:50
    
Glad I could help! –  bobmagoo Aug 21 '12 at 17:59
add comment

Yes, it does. Please read http://httpd.apache.org/docs/2.2/logs.html#accesslog for more info.

share|improve this answer
add comment

Yes it does by default as much as i know. We dont have to do any special configuration to get client ips in apache's access_log. it comes by default

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.