You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Sabherwal, Balvinder (MBS)" <Ba...@mortgagefamily.com> on 2002/02/11 14:30:21 UTC

apache config

Guru's

Is there a way to configure apache so that it doesn't records the access
info into the logs if the request is made on the local host on which apache
is running??

Thanks
Bal.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: apache config

Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
"Sabherwal, Balvinder (MBS)" wrote:
> 
> Is there a way to configure apache so that it doesn't records
> the access info into the logs if the request is made on the
> local host on which apache is running??

You should be able to do this with conditional logging.  Assuming
that your server's IP address is 1.2.3.4, something like this
should work:

SetEnvIf REMOTE_ADDR "^1\.2\.3\.4$" request_is_local=1
CustomLog logs/access_log combined env=!request_is_local

(untested)
-- 
#ken	P-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist      http://Apache-Server.Com/

"Millennium hand and shrimp!"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org