Error pages are not showing any more

mikesta

Member
Oct 30, 2008
16
0
51
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.
 

mikesta

Member
Oct 30, 2008
16
0
51
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.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
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...
 

mikesta

Member
Oct 30, 2008
16
0
51
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.