Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a server that uses cPanel.

There is a built-in feature with cPanel where I can access the login area by going to domain.com/cpanel.

I was wondering if there was a way to disable it or hide it. I've tried creating a cpanel directory with an index.html file.

share|improve this question

closed as off-topic by HopelessN00b Jan 13 at 20:49

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Do you have access to WHM? –  Brett G Nov 2 '09 at 5:58
Yes, I do have access to WHM. –  Ian Nov 2 '09 at 13:21
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 13 at 20:49

1 Answer 1

This is assuming you're running the linux version, not the FreeBSD or windows versions (if so just let me know).

Log into your server (shell, not through whm) and open


Search for -

ServerAlias cpanel.* whm.* webmail.* webdisk.*

Change it to -

ServerAlias whm.* webmail.* webdisk.*

Then just restart apache-

share|improve this answer