Logging HTTP request header information for specific IPs in a separate log file

Is it possible to have Apache log header information for a specific set of IP addresses (and not for others) in a separate log file?
yarongolanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
caterham_wwwConnect With a Mentor Commented:
Are you thinking about the access log?

In your httpd.conf:
SetEnvIf Remote_Addr "^123\.0" iplog
CustomLog iplog.log combined env=iplog

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.