Apache Log File Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nobull
    Confirmed User
    • Oct 2002
    • 1256

    #1

    Apache Log File Help

    Do anyone know how to configure apache to not log image file hits? Our logs are huge and i really don't care to log image hits. We have dedicated servers and I have full root...please let me know if you have the answer.

    Thanks!

    NOREBILLS -- MAKE CASH NOW WITH THE NEWEST IDEA IN ONLINE PORN!
  • NetRodent
    Confirmed User
    • Jan 2002
    • 3985

    #2
    Here's the code we use to log html, shtml, pl, cgi and directory (/) requests:

    SetEnvIf Request_URI \.(html|pl|cgi|shtml)$ filez
    SetEnvIf Request_URI "/$" filez
    CustomLog [path to logfile] [logfile format] env=filez
    "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
    --H.L. Mencken

    Comment

    • juicylinks
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      cd into the directory and just delete

      rm bukkake.log
      rm bighairybush.log
      rm blueballs.log

      Comment

      Working...