Nginx Hardening Checklist: Key Checks for Securing Your Server
A default nginx installation is not automatically hardened, and common issues include exposed version numbers, outdated TLS settings, and missing security headers. The guide recommends checking the nginx version and TLS library against current releases, and hiding version details by turning off server_tokens. It advises explicitly setting modern TLS protocols, since older configs may override safer defaults, and warns that a single add_header in a location block can silently drop headers inherited from the server level. It also highlights the risk of catch-all default server blocks answering requests for unintended hostnames. All changes should be tested on staging and validated with nginx -t before reloading.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in