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.

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

Discussion in 'E-mail Discussions' started by MinaIsaac, May 1, 2014.

  1. MinaIsaac

    MinaIsaac Member

    Joined:
    Dec 19, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    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..
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. MinaIsaac

    MinaIsaac Member

    Joined:
    Dec 19, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator


    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page