Disabling /whm and /cpanel for all domains except the hostname

Issue :

How to disable access to /whm and /cpanel for all domains except the server hostname?

Solution :

This would need customization of the httpd.conf file.

First, edit the httpd.conf and remove any lines pertaining to forwarding of domains to /cpanel and /whm.
Secondly, run the following command to distill the file :

/usr/local/cpanel/bin/apache_conf_distiller –update –main

Finally, restart Apache.

service httpd restart

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com