From a7e8652a4a815cf2666a9fc844e82124a0b75a20 Mon Sep 17 00:00:00 2001 From: Sluijsens Date: Sun, 1 Nov 2026 20:10:45 +0100 Subject: [PATCH] Records the nginx draft and its check on version 1.30.6 Co-Authored-By: Claude Opus 5.5 --- .../pi-install-instructions.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/aidlc-docs/features/prerendering/construction/hosting-and-targets/infrastructure-design/pi-install-instructions.md b/aidlc-docs/features/prerendering/construction/hosting-and-targets/infrastructure-design/pi-install-instructions.md index 05ff87d..8a95836 100644 --- a/aidlc-docs/features/prerendering/construction/hosting-and-targets/infrastructure-design/pi-install-instructions.md +++ b/aidlc-docs/features/prerendering/construction/hosting-and-targets/infrastructure-design/pi-install-instructions.md @@ -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`. - `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. + +## 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.