Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to - changing whm/cPanel secutiy

Discussion in 'Security' started by thehostingland, Jan 5, 2012.

  1. thehostingland

    Joined:
    Jan 5, 2012
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    53
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    I found a site running cpanel but if we try to enter sitename.com/whm or sitename.com/cpanel it shows page not found error page. i am confused how they did it since i wish to do it to my server too for security measures.

    Hope i will find a solution here :)
     
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    751
    Likes Received:
    11
    Trophy Points:
    143
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you are wanting to remove the /cpanel and /whm options to show a page not found for security purposes, you could follow the directions in this post:

    http://forums.cpanel.net/f5/ask-rename-cpanel-whm-become-newname-226501.html#post933932

    Basically, you would remove the ScriptAliasMatch lines and distill Apache, then rebuild and restart Apache. You can even rename the redirects to something else.

    Of note, the reason you can remove lines outside the VirtualHost section is that those sections are built from both /var/cpanel/templates/apache2/main.default and /var/cpanel/conf/apache/main files. When you remove or add contents that are before the VirtualHost area of httpd.conf, those revisions will be added to /var/cpanel/conf/apache/main file if you distill your changes.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. thehostingland

    Joined:
    Jan 5, 2012
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    53
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks both of you for your reply..
    Sry couldn't able to check the reply earlier as i was out of station..
    Will try this method and will get back to you ..
    Thanks mates...
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice