How to change / remove default website page error? Example: mail.domain.com
I have this default page showing up every time I visit mail.mydomain.com.
Here is a screenshot.
.vB
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..
-
Hello, What happens when you go to webmail.domain.com? That is in fact the correct location for webmail. 0 -
Hello :) You can modify the default website page via: "WHM Home " Account Functions " Web Template Editor" Thank you. 0 -
[quote="cPanelPeter, post: 1634362">Hello, What happens when you go to webmail.domain.com? That is in fact the correct location for webmail.
[quote="cPanelMichael, post: 1634452">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.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.0 -
You could setup an entry in the VirtualHost to redirect that subdomain to an alternate website or a 404 error page. Documentation on how to edit VirtualHosts is found here: Changes Contained Within a VirtualHost Directive Thank you. 0
Please sign in to leave a comment.
Comments
4 comments