Skip to main content

Remediation Steps

Follow the steps below to remediate this finding on Apache webserver.

  1. Remove the Indexes option from the Directory directive in your Apache configuration:

    <Directory /var/www/html>
    Options -Indexes
    </Directory>
  2. Alternatively, add the following to your .htaccess file:

    Options -Indexes
  3. Reload Apache:

    sudo systemctl reload apache2