Reorder directives, add comments

This commit is contained in:
Francis Lavoie 2021-08-26 16:59:04 -04:00
parent 5ca0cf9006
commit 6ed18d39fb
No known key found for this signature in database
GPG key ID: 29B92EA7430C3C62

View file

@ -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).