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.

apache nog handling 404 requests

Discussion in 'EasyApache' started by maever, May 6, 2009.

  1. maever

    maever Active Member

    Joined:
    Sep 26, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Hello everyone,

    I'll jump straight to the question.
    Our company is experimenting with their first cpanel servers.
    We are currently experiencing an issue where apache no longer handles any 404 error request (or at least does not seem to be).

    The browser displays an error message that the page could not be found (instead of apache reporting this).
    With this said it also seems impossible to have custom 404 error pages.
    (since the "page not found" message displays in the browser

    We run latest Centos stable with an up2date installation of cpanel.
    additionaly we have enabled suphp and installed mod_security and ConfigServer firewall.

    My question is: what steps can we take in order to get custom 404 error pages working again and could any of our installed modules be the cause of these errors ?

    My gratitude in advance to all who take the time to send in a reply.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The easiest way to implement a custom 404 page in cPanel is to go to the Advanced section and click "Error Pages" then clicking 404 where you can create a custom HTML page that can include server-side includes.
     
  3. maever

    maever Active Member

    Joined:
    Sep 26, 2005
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Thank you for your reply.

    I tried this but the problem seemed to be that Internet Explorer does not display 404 errors that are under 512 bytes.

    So a 404 error pages has to exceed 512 bytes otherwise IE will display it's default "friendly" page-not-found message.
     
Loading...

Share This Page