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?
 
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
All Courses

From novice to tech pro — start learning today.