Skip to main content

Remediation Steps

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

  1. In your nginx.conf http or server block, add:

    server_tokens off;
  2. This removes the version number from the Server header and error pages.

  3. Reload Nginx:

    sudo systemctl reload nginx
  4. For complete Server header removal, use the ngx_headers_more module:

    more_clear_headers Server;