Skip to main content

Remediation Steps

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

  1. Nginx does not use .htaccess files. If .htaccess files exist on the server, deny access in your server block:

  2. location ~ /\.ht {

  3. deny all;

    }
  4. Reload Nginx:

    sudo systemctl reload nginx