Solved

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

Posted on 2008-10-08
1
314 Views
Last Modified: 2008-10-09
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?
0
Comment
Question by:yarongolan
1 Comment
 
LVL 27

Accepted Solution

by:
caterham_www earned 125 total points
ID: 22671374
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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now