How to change / remove default website page error? Example: mail.domain.com

MinaIsaac

Member
Dec 19, 2013
5
0
1
cPanel Access Level
Root Administrator
I have this default page showing up every time I visit mail.mydomain.com.

Here is a screenshot.

defaultpage.jpg

I don't want this page to show up like that or even show up at all. How can I prevent it from showing up, so any visitor won't be able to see the default website page message.

My website running on VPS WHM/cPanel, CentOS 6.5 64-bit.

I contacted my hosting provider and they said:

"This is normal as, mail.domain.com is a 'cname' for your domain and is needed for your email to work correctly. Unfortunately changing this page would be custom configuration (branding) that is outside of our scope of managed support"

Any suggestions guys? Thanks in advance..
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You can modify the default website page via:

"WHM Home » Account Functions » Web Template Editor"

Thank you.
 

MinaIsaac

Member
Dec 19, 2013
5
0
1
cPanel Access Level
Root Administrator
Hello,

What happens when you go to webmail.domain.com? That is in fact the correct location for webmail.

Hello :)

You can modify the default website page via:

"WHM Home » Account Functions » Web Template Editor"

Thank you.

Thank you for your replies,

Actually, I don't want this to appear to normal users, not just modify it. It just looks wrong when a user visit mail.mydomain.com and get this default page show up. I tried to use the following code in the .htaccess in order to prevent mail.mydomain.com from loading but it didn't work. However, It worked for the other sub-domains on my website.

Code:
RewriteEngine On

RewriteCond %{HTTP_HOST} ^mail\.mydomain\.com$ [NC]
RewriteRule ^.* - [F]
Is there any other way to block/restrict the default website page from loading?
http://mail.mydomain.com/cgi-sys/defaultwebpage.cgi

Any answer appreciated! Thank you.
Best regards.