Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
    
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

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

/etc/httpd/conf/httpd.conf

Search for -

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

Change it to -

ServerAlias whm.* webmail.* webdisk.*

Then just restart apache-

/scripts/restartsrv_apache
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.