diff --git a/content/Gitea Actionsとrsync、Caddyで静的サイトをホストする.md b/content/Gitea Actionsとrsync、Caddyで静的サイトをホストする.md index acf26e2a..7c65d6ef 100644 --- a/content/Gitea Actionsとrsync、Caddyで静的サイトをホストする.md +++ b/content/Gitea Actionsとrsync、Caddyで静的サイトをホストする.md @@ -80,13 +80,17 @@ services: - "8080:80" ``` -Caddyファイルは最小限。まだ404の設定とかしてない。 +Caddyファイルは最小限。 ```Caddyfile :80 { root * /www/html file_server try_files {path}.html {path} + handle_errors { + rewrite * /404.html + file_server + } } ```