The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Server-wide error pages

Discussion in 'General Discussion' started by ljesh, Jan 21, 2009.

  1. ljesh

    ljesh Well-Known Member

    Joined:
    Aug 2, 2008
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Hello.
    What dir should I place the default, server-wide error page?
    Let's say the 404.shtml which should be seen by anyone unless they change the default.
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    AFAIK unless each site will have it's own 404 error page. We put a generic 404.shtml in our skel folder so any new accounts will have it. We also have a script which will put the file in any accounts that are missing it, mainly to keep it out of the http error log.

    I think you could just hand edit the httpd.conf and set Errordoc 404 http://www.hostname.com/404.htm or whatever. You need to look at some of the post for editing hte httpd.conf on cPanel 11
     
Loading...

Share This Page