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!

Disable Apache Configuration & DirectoryIndexing

Discussion in 'EasyApache' started by MajorLancelot, May 13, 2019.

  1. MajorLancelot

    MajorLancelot Well-Known Member

    Joined:
    Dec 17, 2014
    Messages:
    47
    Likes Received:
    4
    Trophy Points:
    83
    Location:
    Shinjuku-ku, Tokyo, Japan
    cPanel Access Level:
    Root Administrator
    cPanel has over the years disabled by default WHM features that have become redundant.

    This is good since it reduces attack surface even in misconfigured servers.

    With cPanel File Manager, SSH, SFTP, Web Dav, etc, I was wondering why cPanel why the DirectoryIndex is still left enabled by default in Apache Configuration even with the obvious security implications and the fact that new users don't know much about adding Options -Indexes to .htaccess.

    Even if directory mapping is still needed (can't think of one reason), isn't there a way cPanel can improve on this to make it safer for cPanel users?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,272
    Likes Received:
    2,154
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @MajorLancelot,

    We consider security and usability when deciding on the default options enabled as part of new cPanel & WHM installations. When the Apache Indexes option is disabled, it's more likely users will encounter the "403 Forbidden" errors when attempting to access a domain name prior to uploading an index file.

    I recommend opening a feature request to suggest disabling the Apache Indexes option by default.

    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