Disabling /whm and /cpanel for all domains except the hostname
admin | Sep 09, 2009 | Comments 0
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 fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547