summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r--caddyconfig/httpcaddyfile/directives.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go
index 451850b..ba8f438 100644
--- a/caddyconfig/httpcaddyfile/directives.go
+++ b/caddyconfig/httpcaddyfile/directives.go
@@ -28,21 +28,24 @@ import (
// directiveOrder specifies the order
// to apply directives in HTTP routes.
var directiveOrder = []string{
+ "header",
+
"redir",
"rewrite",
"root",
+ // URI manipulation
"uri",
"try_files",
- // middleware handlers that typically wrap responses
+ // middleware handlers; some wrap responses
"basicauth",
- "header",
"request_header",
"encode",
"templates",
+ // special routing directives
"handle",
"route",