From 6ed18d39fb6ebc7274651b0087ee5b9e8ad77a47 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 26 Aug 2021 16:59:04 -0400 Subject: [PATCH] Reorder directives, add comments --- src/docs/markdown/caddyfile/directives.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives.md b/src/docs/markdown/caddyfile/directives.md index 24c0257..0fbdb3a 100644 --- a/src/docs/markdown/caddyfile/directives.md +++ b/src/docs/markdown/caddyfile/directives.md @@ -83,29 +83,33 @@ header request_body redir -rewrite +# URI manipulation +rewrite uri try_files +# middleware handlers; some wrap responses basicauth request_header encode +push templates +# special routing & dispatching directives handle handle_path route -push +# handlers that typically respond to requests +abort +error respond metrics reverse_proxy php_fastcgi file_server acme_server -abort -error ``` You can override/customize this ordering by using the [`order` global option](/docs/caddyfile/options) or the [`route` directive](/docs/caddyfile/directives/route).