Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    2

    Default [Help] Setup 404 page for all domains

    Hi all.

    I'm trying to setup a custom 404 error page in whm/cpanel.

    I copy my custom page to /usr/local/apache/htdocs and /usr/local/cpanel/htdocs.

    If I try http://IP/test.html or http://hostname/test.html (test.html doesn't exist), it works. It shows the correctly the error page.

    But if I try http://domain.com/test.html, it shows:
    Code:
    Not Found
    The requested URL /ola.html was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    This happens for all domains in the server.

    How can I make this custom error page work for all domains in the server?




    P.S.:
    I have tried some configurations in /usr/local/apache/error/includes/errordocument.conf. This is the file
    Code:
    # 404 - Not Found
    ErrorDocument 404 /404.shtml
    If I change to
    Code:
    # 404 - Not Found
    ErrorDocument 404 http://www.google.com
    it work for all domains.
    But if I change to
    Code:
    # 404 - Not Found
    ErrorDocument 404 /usr/local/apache/htdocs/404.shtml
    it doesn't work for any domain.


    I also tried to make some configurations in httpd.conf. But I think that the configurations were wrong.

    Can anyone give me any help? Why it works with the IP, but not the domains?

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    2

    Default

    Anyone, please?

    How can I make the 404 custom page, shows up with the domains?

Similar Threads & Tags
Similar threads

  1. Custom 404 Page
    By cancer10 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-17-2008, 10:42 AM
  2. 404 Error Page
    By bonnaroo in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-17-2007, 03:18 PM
  3. 404 Default page
    By maxihost2 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-25-2006, 04:55 AM
  4. Custom 404 Page
    By ilan in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-22-2005, 10:22 AM
  5. 404 error when adding custom 404 page.
    By VS-Lap in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-06-2002, 11:01 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube