The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    3
    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:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    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.
     
  4. thehostingland

    Joined:
    Jan 5, 2012
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    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