Skip to content

Commit

Permalink
website: set up 404 response page
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Sep 16, 2024
1 parent fad13eb commit 5b94661
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/services/website.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
encode zstd gzip
root * /var/www/fufexan.net
file_server
handle_errors {
@404 {
expression {http.error.status_code} == 404
}
rewrite @404 /404.html
file_server
}
'';

services.caddy.virtualHosts."dots.fufexan.net".extraConfig = ''
Expand Down

0 comments on commit 5b94661

Please sign in to comment.