HowTo Redirect cPanel Default Hostname Web Page

One of our client just setup the cPanel on his VPS  and have everything working so far.Except for this: When he go to cpanel.mydomain.com it takes him to the default page.

So here I am sharing the solution if anyone else facing same issue:

In /usr/local/apache/conf/httpd.conf, add “Redirect 301 /index.html http://www.domain.com/”

<Directory “/usr/local/apache/htdocs”>
Options Includes Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Redirect 301 /index.html http://www.domain.com/
</Directory>

Done!!