Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to disable apache access log for localhost requests? or for specific IP?

share|improve this question

migrated from stackoverflow.com Apr 28 '11 at 18:20

This question came from our site for professional and enthusiast programmers.

Find <IfModule log_config_module> inside httpd.conf (under Windows) or other conf file (under Linux) and add

SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog

Logs in apache 2.2 Conditional Logs section

share|improve this answer
    
I am using apache 2 on ubuntu. How can I enable log_config_module? – bbzer Apr 28 '11 at 18:05
    
mod_log_config should be compiled in. You don't need to activate it separately. Besides that a2enmod is the utility of choice to activate Apache httpd modules on Debian or Ubuntu systems. – joschi Apr 28 '11 at 19:22
1  
+1 for linking the documentation. – pjmorse Apr 29 '11 at 16:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.