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.

Host Error Pages

Discussion in 'General Discussion' started by GrimReaper, Oct 8, 2003.

  1. GrimReaper

    GrimReaper Active Member

    Joined:
    Jul 27, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Hi There,

    I was just wondering if anyone knows how to make it so if someone types in a domain that doesn't exist on the server and gets shunted to the I.P. of the server how do I make the page I want to appear custom?

    E.g. a custom 404 page for the host but that doesnt effect the domains on the site themselves.

    Thanks!
    Chris.

    cPanel.net Support Ticket Number:
     
  2. Jemshi

    Jemshi Well-Known Member

    Joined:
    Sep 11, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    if the domain doesnt exist, how come it resolve to your server ?

    if it is already registered with the name servers returning the main IP of your server, then the domain should show up your server's doc. root.

    cPanel.net Support Ticket Number:
     
  3. GrimReaper

    GrimReaper Active Member

    Joined:
    Jul 27, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    I spose I should have been more specific, sorry.

    If I type in the I.P. address of my server at the moment I get a message "There is no website configured at this address." yet if I type in 111.111.111.111/abc.htm (assuming 111.111.111.111 is my I.P.) then I get a 404 Error page.

    Where is that error page located? and if I change it will it effect all domain accounts on the server?

    Any help apprechiated :)

    Chris.

    cPanel.net Support Ticket Number:
     
  4. Jemshi

    Jemshi Well-Known Member

    Joined:
    Sep 11, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    you can put your own custom 404.shtml file in server's document root ( normally - /usr/local/apache/htdocs ). Then, that page will be displayed for all domains where it hasn't been overridden with their .htaccess.

    cPanel.net Support Ticket Number:
     
  5. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    I have placed these there but they do not seem to work for sites that do not have custom error files.

     
  6. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    ErrorDocument 404 /404.shtml is also enabled in httpd.conf
     
Loading...

Share This Page