diff --git a/src/docs/markdown/v2-upgrade.md b/src/docs/markdown/v2-upgrade.md index 2c23064..f2729a1 100644 --- a/src/docs/markdown/v2-upgrade.md +++ b/src/docs/markdown/v2-upgrade.md @@ -156,20 +156,11 @@ Custom error pages can be accomplished with [`handle_errors`](/docs/caddyfile/di ``` errors { - 404 404.html # Not Found - 500 500.html # Internal Server Error + 404 404.html + 500 500.html } ``` -or - -``` -errors { - * default_error.html -} -``` - - - **v2:**: ``` @@ -179,15 +170,6 @@ handle_errors { } ``` -or even - -``` -handle_errors { - rewrite * /{http.error.status_code} - reverse_proxy https://http.cat -} -``` - ### ext Implied file extensions can be done with [`try_files`](/docs/caddyfile/directives/try_files).