Skip to content

add 404 page option - #14

Merged
Mkkbeydoun merged 1 commit into
mainfrom
error-page
Oct 29, 2026
Merged

Mkkbeydoun merged 1 commit into
mainfrom
error-page

Conversation

@Mkkbeydoun

Copy link
Copy Markdown
Member

Adds a 404 Page variable. Set it to a page in the site (e.g. 404.html or errors/404.php) and every page that doesn't exist shows it with a 404 status. The path is from the site's root, so with Root Folder set it's in that folder. Blank keeps the current behaviour: missing pages go to index.php (WordPress etc. need that).

  • start.sh writes tmp/nginx-errors.conf on every start and default.conf includes it; location / now falls back to a @missing location defined there
  • the value is checked like Root Folder (no .., dotfiles or spaces); a missing page gets a console warning
  • older default.conf without the include gets a warning to reinstall
  • egg version 1.0.5, so merging makes a release

@Mkkbeydoun
Mkkbeydoun merged commit 0705cc6 into main Oct 29, 2026
1 check passed
@Mkkbeydoun
Mkkbeydoun deleted the error-page branch October 29, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant