diff --git a/examples/Caddyfile.example b/examples/Caddyfile.example index a7a701d..e74721e 100644 --- a/examples/Caddyfile.example +++ b/examples/Caddyfile.example @@ -18,6 +18,14 @@ # # Clean URLs support (resolves /join to join.html, etc.) # try_files {path} {path}.html {path}/ # file_server +# +# # Serve the themed 404 page for unknown URLs (without this block, +# # Caddy returns an empty 404 response) +# handle_errors { +# @notfound expression {err.status_code} == 404 +# rewrite @notfound /404.html +# file_server +# } # } # # syncserver.koalastuff.net { @@ -57,6 +65,14 @@ sync.koalastuff.net { try_files {path} {path}.html {path}/ file_server + # Serve the themed 404 page for unknown URLs (without this block, + # Caddy returns an empty 404 response) + handle_errors { + @notfound expression {err.status_code} == 404 + rewrite @notfound /404.html + file_server + } + # Static Caching for high-performance PageSpeed (1 year with validation) @static { file diff --git a/extension/popup.html b/extension/popup.html index f7f6224..9690cb1 100644 --- a/extension/popup.html +++ b/extension/popup.html @@ -3,6 +3,7 @@ KoalaSync +