Jump to content

Stop logging whole directory and internal IP


mgwalk

Recommended Posts

How do I stop logging a directory and and internal IP

 

  SetEnvIf Remote_Addr "10\.10\.10\.1" dontlog
  SetEnvIf Request_URI "^/images/*" image-request
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
  CustomLog logs/access.log combined env=!dontlog env=!image-request

 

What do I have wrong?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.