fix(site): serve the site's own 404 page on iggy.apache.org - #82
Merged
Conversation
next build emits out/404.html, but the ASF web server never uses it and answers unknown paths with its own bare "Not Found" body. Add a root .htaccess setting ErrorDocument, and copy it into out/ alongside .asf.yaml in both workflows.
justinmclean
force-pushed
the
site/serve-custom-404
branch
from
September 3, 2026 07:00
026f4db to
67535f1
Compare
kparisa
self-requested a review
September 3, 2026 07:11
kparisa
approved these changes
Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
next buildalready emits out/404.html, but the ASF web server never uses it: unknown paths get httpd's bare "Not Found" body instead. The status code is 404 either way, so this only changes what agents and humans read on the way out -- the built page points at /docs, /sitemap.xml and /llms.txt, which is the useful part.Add a root .htaccess with
ErrorDocument 404 /404.htmland copy it into out/ alongside .asf.yaml in both the deploy and stage workflows.Verify on iggy.staged.apache.org before merging: the .htaccess only takes effect once published, so it cannot be tested from a local build.