Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
5 additions and
2 deletions
-
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", |
|
|
|
|
|
|
|