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.

Can not find error pages extensions in httpd.conf

Discussion in 'General Discussion' started by tranthu1983, Jan 17, 2010.

  1. tranthu1983

    tranthu1983 Member

    Joined:
    Jan 17, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi all
    i want co make custom error page for all hosting account on my server but when i try go to httpd.conf to do it i can not find error pages extensions

    please show me how to do it ?

    my current default 404 error page is :

    Code:
    Not Found
    
    The requested URL /32523 was not found on this server.
    
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    pls help
    thank you
     
  2. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    I think you can make it from => /usr/local/apache/error/
     
  3. tranthu1983

    tranthu1983 Member

    Joined:
    Jan 17, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1


    at there i see this HTTP_NOT_FOUND.html.var
    but i dont know how to make it work

    can u tell me step by step to do it?
    thank so much
     
  4. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
  5. tranthu1983

    tranthu1983 Member

    Joined:
    Jan 17, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    i check in httpd.conf and see this

    Include "/usr/local/apache/conf/includes/errordocument.conf"

    and when go to errordocument.conf

    it show



    i think that is where i have to config

    with this ErrorDocument 404 /404.shtml

    that mean file 404.shtml stored in includes forder ?
    but i not see it in includes
    i tried put one file 404.shtml and restart apache but it still not work

    any ideas ?

    thank you
     
  6. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Take a look here:
    /usr/local/apache/htdocs
    You will see the error pages and in their code you will see include of this file
    cp_errordocument.shtml
    Modify it using:
    pico /usr/local/apache/htdocs/cp_errordocument.shtml

    Hope that help
     
  7. tranthu1983

    tranthu1983 Member

    Joined:
    Jan 17, 2010
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cp_errordocument.shtml

    what i have to modify ?
    im new in this

    thank you!
     
Loading...

Share This Page