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!

Stop cPanel redirects for subdomains, subfolders

Discussion in 'Security' started by kpmedia, Dec 5, 2013.

  1. kpmedia

    kpmedia Well-Known Member

    Joined:
    Feb 13, 2011
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    56
    Location:
    USA, Europe
    cPanel Access Level:
    Root Administrator
    I'm annoyed by the swiss cheese of cPanel. Specially, all the login methods available.
    It causes problems, and I'm tired of it.

    I want to entirely block
    - subdomains (cpanel., whm., etc)
    - subfolders (/cpanel, /whm, etc)

    I DO NOT want to merely redirect them. I want the requests to be 404.

    Not on a per-domain level, but the whole server. This is honestly a stupid feature, and should not exist.

    How can these be disabled permanently?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can disable the "Proxy subdomains" option under the "Domains" tab in "WHM Home » Server Configuration » Tweak Settings". The "ScriptAliasMatch" entries for /cpanel, /whm, and /webmail can be removed from the /usr/local/apache/conf/httpd.conf file. Remember to edit the httpd.conf file using the instructions at the URL below to ensure the changes are preserved:

    EasyApache: Changes Contained Outside a VirtualHost Directive

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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