Apache Config Auditor
Your httpd.conf decides what attackers learn about your server, which TLS versions it will negotiate, and which paths are public. Read it before they do.
An Apache config audit is a static review of an httpd.conf, virtual-host config or .htaccess file — its TLS settings, headers, exposure switches and access rules — checked line by line against known-good practice, without running the server. Paste yours here and this auditor reads it in your browser — never uploaded — and flags ServerTokens left on OS, TraceEnable on, old TLS versions, weak ciphers, Options Indexes, an unlocked filesystem root, deprecated 2.2 Order/Allow/Deny rules, missing security headers, missing compression and switched-off logging, with a 0–100 score. The companion article Apache config audit guide explains each check. Also see the Nginx Config Auditor and the SSH Server Config Auditor.
Last updated:
1. Audit a config
Results
🔒 The audit runs entirely in your browser: the config is never uploaded, never stored, and never sent anywhere. A config names certificate paths, internal paths and access rules — that is exactly why it stays on your machine.
What an Apache config is
An Apache config is a flat list of directives, grouped by sections: <VirtualHost> holds one site, <Directory> and <Location> scope rules to a path, <Files> and <FilesMatch> scope them to filenames, and <IfModule> applies a block only when a module is loaded. Each directive is one line — DirectiveName value … — a backslash at the end of a line continues it, and # starts a comment.
Most directives inherit down the section tree, and a later, more specific value wins. Two files share the job: httpd.conf (plus the virtual-host files it includes) sets the server-wide policy, while .htaccess files in a directory override it per request — which is why AllowOverride matters: None means .htaccess files are ignored entirely (faster), All means every request re-reads them (flexible, slower).
TLS lives in a handful of directives, usually inside an SSL virtual host: SSLProtocol picks the protocol versions, SSLCipherSuite the cipher list, SSLHonorCipherOrder decides whose preference wins, and SSLSessionTickets controls session resumption keys. Together with SSLEngine on and the Listen 443 line, they are the whole transport-security posture of the site — which is why this auditor weights them heavily.
A config also decides what the server reveals and serves by default: ServerTokens prints the Apache version in error pages and the Server header, Options Indexes turns a directory into a browsable listing, and a <Directory /> without Require all denied leaves the whole filesystem reachable in principle. Apache 2.4 replaced the 2.2 access model — Order, Allow, Deny — with Require; the old directives still parse, but they no longer do what their authors meant.
What this auditor does — and what it does not
It parses the config in your browser — sections, directives, comments, quoted strings and line continuations — and runs 38 rules over the tree: ServerTokens and ServerSignature, TraceEnable, TLS versions and ciphers, HSTS and the three baseline security headers, Options flags, the filesystem-root lockdown, sensitive locations without a Require rule, .ht* file exposure, deprecated 2.2 access control, NameVirtualHost, body-size and timeout settings, compression, logging, AllowOverride, FileETag, virtual-host completeness and unmatched Listen ports. Scoring starts at 100; each error deducts 10 (capped at 50), each warning 4 (capped at 28), each info 1 (capped at 10). Bands: 90+ Excellent, 70–89 Good, 50–69 Needs work, below 50 Poor.
It does not run Apache, follow Include lines, open your certificate files, or test a live server: it reads exactly the text you give it. A finding is a pattern, not a verdict — AllowOverride All may be exactly what a shared host needs, and a large LimitRequestBody may be what an upload service requires. Read each finding with its evidence and decide with your context.
The broken demo is a small site config built to trip the rules on purpose — ServerTokens OS, TraceEnable on, TLSv1 and TLSv1.1 enabled, RC4 ciphers, Options Indexes, an unlocked filesystem root, an unguarded /server-status, .ht* files left open, deprecated 2.2 rules and an unmatched Listen port — and scores 12 (Poor). The hardened demo is the same shape with every finding fixed, and scores 100.
Be honest about what a static audit cannot see
This audit reads text. It cannot see the certificate files the config points at (an expired or mismatched certificate passes every check here), which modules your Apache binary actually loaded at runtime, whether an .htaccess override in a subdirectory undoes a setting, or the firewall in front of the server. It also cannot see files pulled in by Include — audit those separately, because a clean main file can include a broken virtual host.
And a high score is not a safe server. The rules encode widely agreed practice — the Apache HTTP Server 2.4 documentation, its security tips, and the Mozilla SSL Configuration Generator — but they are a checklist, not a penetration test. “No findings” means no risky pattern was found in this text — not that the server behind it is secure.
Key facts
| ServerTokens | Controls how much version information Apache prints in error pages and the Server response header. Prod prints only “Apache”; the default OS adds the version, and Full adds module versions too. |
| TraceEnable | Whether the server answers the HTTP TRACE method. On (the 2.4 default), it enables cross-site tracing: a script on another site can read headers from a response, including cookies not marked HttpOnly. |
| Options Indexes | When set on a directory without an index file, a request for that directory returns a browsable listing of every file in it — backups, configs and all. |
| Require | Apache 2.4’s access-control directive, replacing the 2.2 Order/Allow/Deny trio. Require all denied blocks everyone; Require all granted allows everyone; Require local allows only the machine itself. |
| HSTS | The Strict-Transport-Security header tells browsers to only ever use HTTPS for the site. It only counts when sent from the HTTPS virtual host itself, via Header set. |
| AllowOverride | Decides which directives a .htaccess file may override. None ignores .htaccess files entirely (faster, since Apache stops looking for them); All lets every directory override everything (flexible, but every request re-reads the file). |
| .htaccess | A per-directory config file Apache reads on every request for that directory and below. It can override most server settings — which is why its own performance cost and its ability to undo a hardening setting both matter. |
| Format reference | Apache HTTP Server Version 2.4 Documentation |
Frequently asked questions
Why does the audit run in my browser instead of on a server?
Because a config can name things you do not publish: certificate and key paths, internal paths, allow-lists for admin paths. Sending that to a server to audit it would create the exact exposure the audit is meant to catch. Parsing it locally means the config never leaves your machine.
My config has findings — is my server unsafe?
Not necessarily. A finding is a pattern that matched, and some matches are intended: AllowOverride All on a shared host, a large LimitRequestBody on an upload service. Start with the errors — TraceEnable on, old TLS versions, weak ciphers, Options Indexes, an unlocked filesystem root — then the warnings, and treat the infos as a checklist of defaults worth setting explicitly.
What can this audit not check?
Anything outside the pasted text: the certificate files themselves, included files (Include lines are noted, not followed), which modules are actually loaded at runtime, .htaccess overrides in subdirectories, and whether the running server actually loaded this config. Run apachectl configtest and apachectl -S on the server for the full picture — this tool is the fast first pass over the text.