Web server security
Web Server Security Audit Checklist: Nginx & Apache
Nginx and Apache - what they expose and how they are configured.
Your web server is the one process the entire internet is invited to talk to. Everything it exposes, it exposes to everyone: a stray directory listing, a forgotten .git folder, a version banner that tells a scanner which exploit to try.
- Read-only, safe on production
- No agent installed
- 10 distros auto-detected
How much of this is serious?
Severity of all 36 Web Server checks, as the audit scripts rate them.
- 8High severity22%
- 18Medium severity50%
- 10Low severity28%
- Audits
- 6
- Checks
- 36
- Whole category
- ~68 seconds
- Need root
- 8 of 36
The catalog
The 6 Web Server audits
Security headers are the cheapest wins here and the most commonly missing: a handful of lines in a config file.
- 01Security HeadersHSTS, CSP, framing, MIME sniffing, referrer and permissions policy0 high, 5 medium and 3 low severity checks8 checks · ~10sNo root needed
- 02Configuration HardeningFile permissions, web root ownership, request limits and modules2 high, 2 medium and 2 low severity checks6 checks · ~11s2 need root
- 03Content ExposureDirectory listing, hidden files, backups, methods and status endpoints1 high, 4 medium and 1 low severity checks6 checks · ~14s2 need root
- 04TLS ConfigurationProtocol versions, cipher suites, certificates and HTTPS redirection3 high, 2 medium and 1 low severity checks6 checks · ~12s1 need root
- 05Identification & PatchingServer inventory, version disclosure, worker privileges and pending updates2 high, 1 medium and 2 low severity checks5 checks · ~9s1 need root
- 06Logging & MonitoringAccess and error logging, log permissions, rotation and WAF presence0 high, 4 medium and 1 low severity checks5 checks · ~12s2 need root
What these audits cover
- HSTS, CSP, framing, MIME sniffing, referrer and permissions policy headers
- Protocol versions, cipher suites, certificate validity and HTTPS redirection
- Directory listing, hidden files, stray backups, permitted methods and status endpoints
- Version disclosure, worker privileges, request limits and log configuration
What they do not cover
- Application vulnerabilities. These audits read server configuration, not the code behind it.
- A live web application scan. Nothing here crawls your routes or submits forms.
- CDN and WAF configuration. If Cloudflare terminates TLS, the headers a visitor sees may not be the ones this reads.
Keep going
Other categories
A web server security audit reviews how Nginx or Apache is configured and what it returns to clients: which security headers are set, which TLS protocol versions and cipher suites are accepted, whether directory listing or hidden files are exposed, whether the server discloses its version, and whether access and error logging is configured and rotated.
At minimum: Strict-Transport-Security to force HTTPS, Content-Security-Policy to constrain what the page may load, X-Frame-Options or a CSP frame-ancestors directive to prevent clickjacking, X-Content-Type-Options set to nosniff, a Referrer-Policy, and a Permissions-Policy to switch off browser features the site does not use.
Yes. The audits detect which web server is installed and read the configuration layout for that server, so a host running Nginx is checked as Nginx and a host running Apache as Apache. A server running both is checked for both.
The configuration checks will, because they read the files on your origin. The response checks need more care: if a CDN terminates TLS and injects or strips headers, the headers a visitor receives are not necessarily the ones your origin sets. Audit the origin with these checks, then verify the edge separately.
On a fully patched server it matters much less, which is why it is a low-severity finding rather than a failure. Its practical cost is that it lets an automated scanner skip straight to the exploits that match your exact version, so removing the banner buys you nothing against a determined attacker and a great deal against opportunistic scanning.
Stop juggling tools. Start managing fleets.
One app. All your servers. No context switching. Free to start, free to leave.
Start instantly · No credit card · Cancel anytime