Stop error loggin missing images?

Discussion in 'Server Operation' started by edge, Sep 20, 2007.

  1. edge

    edge Active Member Moderator

    Anyone here who might know how I can stop my apache2 error log filling up with errors of missing images?

    One of the client sites on my (ISPconfig) server is an image hosting service.
    As the images are deleted after some time (1 year), and as a lot of people are still linking to some of the deleted images the Apache error log file gets really big!

    I've found this fix, (needs to be added to the Apache httpd.conf) but thats for the normal Apache log file, and not for the Apache error log file:
    I would also like to have this for only the "problem" site, and not for all the sites that are hosted on my server.
    Again, I'm using ISPconfig to manage the server, so I do not want to "break" any other function!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Have you tried env=!is-image in the ErrorLog line?
     
  3. edge

    edge Active Member Moderator

    falko.

    I've not tried this.
    Should I put this in the httpd.conf?
    Google does not give much usable info about this.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Yes, try it (I'm interested in the result as well :)). If it doesn't work, you can undo it.
     

Share This Page