asw/packs/nginx/nginx-errors.conf
Ludo 86464f3e21
feat: legacy import — packs, examples, lab, themes, docs, lineage
Import from agentic-semantic-web/ into restructured repo:
- 7 packs (apache, caddy, flask, hugo, nginx, pandoc, python)
- shared error pages (403-503)
- 17 lab experiments (boilerplate, charts, misc)
- 31 example pages (charts, components, content, layout, vault)
- 2 themes (garden, trentuna stub)
- 4 docs (llms.txt, vocabulary, philosophy, agent-directive)
- lineage.md (Pico/Open Props/Charts.css history)
- Hugo mounts for lab/ and examples/

All agentic.css references updated to asw.css.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 16:57:39 +02:00

25 lines
1,005 B
Text

# ASW Nginx Error Pages — config snippet
#
# Paste this into your nginx server block.
# Adjust the alias path to where your agentic-semantic-web repo lives.
#
# Assumes asw.css is served at /asw/asw.css
# (see nginx-asw-css.conf for the CSS serving block)
# ── Error pages ──────────────────────────────────────────────────────────────
error_page 400 /errors/400.html;
error_page 401 /errors/401.html;
error_page 403 /errors/403.html;
error_page 404 /errors/404.html;
error_page 500 /errors/500.html;
error_page 502 /errors/502.html;
error_page 503 /errors/503.html;
# Serve error pages from the ASW repo.
# `internal` means these URLs are only accessible via internal redirects (error_page),
# not directly from the browser — prevents users from 200ing your error pages.
location /errors/ {
alias /home/exedev/projects/agentic-semantic-web/errors/;
internal;
}