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.

Error pages are not showing any more

Discussion in 'Data Protection' started by mikesta, Dec 19, 2008.

  1. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi together,
    I have a problem with my new installation of Cpanel. With old CPanel version, I configured my whole server and installed one domain called for example mydomain.com .

    When someone tryed to enter a subdomain, that doesnt exist like subdomain.mydomain.com , he always got that default page located at /usr/local/apache/htdocs/index.html

    So that was really fine, because I just redesigned that page and everything was okay.

    Now I reinstalled my server with the new version of CPanel and it seems that everything has changed. Instead of using that page, subdomains that are not applied still get an directory list with the following structure:

    Could that be because of suphp?

    I just want that subdomains that are not applied will see the default CPanel page.

    Hope someone has an idea on that.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Place a file in that directory called index.html customize it anyway you like.
     
  3. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Where should I place an index.html?

    Within /usr/local/apache/htdocs/index.html there is already an index located there, but it isn´t used.

    And for the subdomain, there I couldnt put an index.php because that subdomain doesn´t exist.

    The problem ist that you could use every subdomain you like and put it into your browser, it will always get to that directory listing.

    If the subdomains are applied over WHM, they get an index from my skleton folder, that works fine, but I want to handle all the subdomains that are not applied or even if people misspell something.
     
  4. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    No one an idea on that?
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    All what sub-domains? If someone types in anythingtheylike.yourdomain.com you want them to get sent to an error page, right?

    So you'd add error pages from within your cPanel account to solve that. Add all pages listed and edit as you like. Problem solved.

    You don't want anything pointing to the default cPanel page, you want them to be sent to an error page, instead.

    I must not be understanding the issue properly...
     
  6. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Okay, I will explain it again.

    Normally if you make a fresh install on a server with Cpanel and point a Domain there, you will see that default Cpanel page, showing you that the server seems to work correctly.

    Now I reinstalled my server and included the old accounts from a backup over WHM.

    The following thing happened, if I now try to reach any subdomain that, I dont mean a separately applied one, it always end within an directory listing with the following :

    So even if a enter an custom error page as you wrote before, it always ends within that special directory listing.

    That was the question, hope someone has an idea on that.
     
  7. hzJayJ

    hzJayJ Well-Known Member

    Joined:
    Nov 14, 2008
    Messages:
    76
    Likes Received:
    1
    Trophy Points:
    8
    Please check whether you have set any wildcards entries for the domain.
     
Loading...

Share This Page