# h5bp/server-configs-nginx

Nginx HTTP server boilerplate configs

Repository: https://github.com/h5bp/server-configs-nginx
Canonical: https://ross.abutalabs.com/products/server-configs-nginx
License: MIT
License Family: permissive
Topics: nginx, nginx-configuration, config, standard, h5bp, best-practices, robust
Last push: 2026-06-20T15:26:17+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 4784, "days_push": 74, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11560, forks 1519 (observed 2026-08-28T04:10:48.692049+00:00)

## What it is
A collection of Nginx configuration files and snippets from the HTML5 Boilerplate project that improve website performance and security. It provides ready-made server definitions, location blocks, and mixin-style includes for caching headers, MIME types, cross-domain fonts, and system file protection.

## Use cases
- harden nginx configuration with security best practices
- set up correct caching and expires headers in nginx
- serve files with correct content-type and cross-domain access
- bootstrap a production nginx config for a website
- protect system files from web access in nginx
- get a secure https server template for nginx

## When to choose
- you run Nginx and want battle-tested, community-maintained config defaults
- you want to quickly apply performance and security headers without writing configs from scratch
- you want modular snippets you can include selectively

## When to avoid
- you use Apache, Caddy, or another web server
- you need a fully managed or dynamically configured reverse proxy rather than static config files
- your environment requires highly customized configs that conflict with the boilerplate assumptions

## Facets
- artifact type: infra-config
- maturity: active
- function: http-server, security, caching, middleware
- domain: web-development, self-hosted, security
- platform: self-hosted
- tags: nginx, boilerplate-configs, h5bp, performance, best-practices, server-hardening, devops, linux, web-server

## Member repositories
- h5bp/server-configs-nginx (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:48.692049+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:30.713186+00:00, confidence not recorded.
  - readme: https://github.com/h5bp/server-configs-nginx (fetched 2026-08-28T04:10:48.692049+00:00, sha 99b4188ae952)
- Data as of 2026-08-30T08:39:29.467469+00:00.
