Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Custom Error Pages (404 / 500 / etc) and error logs

Discussion in 'General Discussion' started by chrismfz, Feb 1, 2013.

  1. chrismfz

    chrismfz Well-Known Member

    Joined:
    Jul 4, 2007
    Messages:
    125
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    Greece
    cPanel Access Level:
    DataCenter Provider
    In apache error_log I got -on average-
    499.000 lines of 500.000 are errors of missing:
    404.shtml , 500.shtml, 403.html, robots.txt and favicon.ico.

    That's messes things arround when searching logs, plus the space and io for all those lines. :D

    I know I could create them in cpanel-skel but I already got hundreds of accounts in multiple servers.
    Plus, this doesn't work for addon domains and subdomains.

    So, is there a way to "tell" apache to use specific error files for all accounts/domains only if these users don't have their own files in their public_html ?


    Or else I believe I should grep and awk the "DocumentRoot" of httpd.conf and so help me God with it,
    copy and chown files if not already exists, but I am a bit scared doing that.
    (Except if there is another way around too)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice