Records the nginx draft and its check on version 1.30.6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 20:10:45 +01:00
co-authored by Claude Opus 5.5
parent b6d5a85e41
commit a7e8652a4a
@@ -89,3 +89,20 @@ The proxy passes an already compressed response through unchanged. If the owner
- The deploy must empty the target folder, or a removed page stays at 200. The `deploy-test` step already does this with `find -delete`. - The deploy must empty the target folder, or a removed page stays at 200. The `deploy-test` step already does this with `find -delete`.
- `location = /robots.txt` overrides the build's `robots.txt`, which is right for test. Production must serve the real `robots.txt` and `sitemap.xml`. - `location = /robots.txt` overrides the build's `robots.txt`, which is right for test. Production must serve the real `robots.txt` and `sitemap.xml`.
- `gzip_proxied any` does little here, since the proxy sets no `Via`, but it does no harm. `listen 80` on IPv4 is enough. - `gzip_proxied any` does little here, since the proxy sets no `Via`, but it does no harm. `listen 80` on IPv4 is enough.
## Draft and Check on nginx 1.30.6
The Pi-Main session placed the draft in `server-ops` at `drafts/2026-11-01-andreaslop-prerender/` (commit 9c873bf), with `README.md` as step 11 of the owner's checklist. The config is a literal copy of commit b6d5a85e (sha256 `8ed373bb306e90b0...`, 168 lines, LF).
Without root, it ran a copy of this file on nginx 1.30.6 with only `listen` and `root` changed, on 127.0.0.1:18080, with test pages, and stopped it afterwards. `nginx -t` on a separate test config reported `syntax is ok`; the bind on port 80 failed as an ordinary user, as expected.
| Request | Result on 1.30.6 |
|---|---|
| `/`, `/over-mij`, `/over-mij?x=1`, `/soorten-fotoshoots`, `/soorten-fotoshoots/newborn` | 200 |
| `/Over-Mij`, `/OVER-MIJ.HTML`, `/over-mij.html`, `/over-mij/` | 301 to `/over-mij`, relative, query kept |
| `/index.html`, `/index` | 301 to `/` |
| `/bestaat-niet`, `/404`, `/404.html`, `/assets/nope.js`, `/assets`, `/%5Cevil.example/` | 404 with the 404 page and security headers |
| `//evil.example/` | 301 to `/evil.example`, relative, so no open redirect |
| HTTP/1.0 with gzip accepted, on HTML and an asset | `Content-Encoding: gzip`, `Vary: Accept-Encoding`; the asset has `immutable` and the security headers |
Not yet proven: the same file at its real path with `nginx -t` as root, and the checks through the proxy. Those follow at installation.