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


Shares
Contact Us On WhatsApp