Error_log Level "Script not found or stat"

Discussion in 'Site & Server Administration' started by DenRomano, Dec 7, 2008.

  1. #1
    I have a website that uses the fact the apache will redirect to a different file/script when a file is not found.

    Example: if file test.php does not exist (404 error) then run 404error.php

    The problem is in the error_log there are tens of thousands of error line for the "file not found or stat" so it is tough to find the important stuff. I know I can change levels from warn to crit but then it does not have anything show up

    Any ideas on how to exlude just the one error

    script '/var/www/vhosts/domain.com/httpdocs/filename.html' not found or unable to stat

    from logging into the apache logs?
     
    DenRomano, Dec 7, 2008 IP
  2. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    make sure the file /var/www/vhosts/domain.com/httpdocs/filename.html is around. That should stop those errors from generating.
     
    Mxhub, Dec 13, 2008 IP