[Log In ] [New Posts] []
Go Back   GotApex? Forums Forums > General Topics > Software, OS, and the Internet
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-25-2003, 01:21 PM   #1
pagemap
Lieutenant Commander
 
pagemap's Avatar
 
Join Date: Sep 2001
Location: Madison, WI
Posts: 924
Send a message via AIM to pagemap Send a message via MSN to pagemap
Apache logging question

Can I config apache to not log certain IPs? I connect to my http server the most of anyone, and I want to see what everyone else is doing, not myself.

Thanks
__________________
Got|Apex Senior Inexperienced Poster
S.I.P.
pagemap is offline   Reply With Quote
Old 01-25-2003, 08:34 PM   #2
Hoser
Commander
 
Join Date: Apr 2000
Location: Omaha, NE, United States
Posts: 1,275
This link gives you the info you need: http://httpd.apache.org/docs/logs.html

Here's the important stuff

Conditional Logging
There are times when it is convenient to exclude certain entries from the access logs based on characteristics of the client request. This is easily accomplished with the help of environment variables. First, an environment variable must be set to indicate that the request meets certain conditions. This is usually accomplished with SetEnvIf. Then the env= clause of the CustomLog directive is used to include or exclude requests where the environment variable is set. Some examples:

# Mark requests from the loop-back interface
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
# Mark requests for the robots.txt file
SetEnvIf Request_URI "^/robots\.txt$" dontlog
# Log what remains
CustomLog logs/access_log common env=!dontlog

Last edited by Hoser : 01-25-2003 at 08:39 PM.
Hoser is offline   Reply With Quote
Old 01-26-2003, 01:10 AM   #3
pagemap
Lieutenant Commander
 
pagemap's Avatar
 
Join Date: Sep 2001
Location: Madison, WI
Posts: 924
Send a message via AIM to pagemap Send a message via MSN to pagemap
I put that into my conf file, but it didnt seem to work? Should I be placing the text in a specific area of the log file?
pagemap is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 10:58 AM.