Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    16

    Question Error pages are not showing any more

    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:

    Index of /

    * cgi-bin/
    * images/
    * postinfo.html

    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at asdjahkjshdkhasd.mydomain.com Port 80
    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Place a file in that directory called index.html customize it anyway you like.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    16

    Default

    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. #4
    Member
    Join Date
    Oct 2008
    Posts
    16

    Default

    No one an idea on that?

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    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...
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  6. #6
    Member
    Join Date
    Oct 2008
    Posts
    16

    Default

    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 :

    Index of /

    * cgi-bin/
    * images/
    * postinfo.html

    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at asdjahkjshdkhasd.mydomain.com Port 80
    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. #7
    Member
    Join Date
    Nov 2008
    Posts
    76

    Default

    Please check whether you have set any wildcards entries for the domain.
    Regards,
    Jay J,
    HostingZoom | ResellerZoom |
    modVPS

Similar Threads & Tags
Similar threads

  1. Undefined showing on ALL pages
    By tamia in forum Data Protection
    Replies: 2
    Last Post: 02-20-2008, 11:20 AM
  2. Showing Old Pages [moved]
    By RichardJ in forum New User Questions
    Replies: 2
    Last Post: 08-24-2006, 02:51 PM
  3. index.shtml pages not showing
    By VinceL in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-18-2005, 09:08 PM
  4. Adding Custom Error Pages for non-existant pages
    By YukFoo in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-16-2002, 03:07 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube