Skip to content

Commit

Permalink
httpcaddyfile: Add {err.*} placeholder shortcut (#4798)
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie committed May 24, 2022
1 parent 9e760e2 commit 58970ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caddyconfig/httpcaddyfile/httptype.go
Expand Up @@ -107,6 +107,7 @@ func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock,
{regexp.MustCompile(`{re\.([\w-]*)\.([\w-]*)}`), "{http.regexp.$1.$2}"},
{regexp.MustCompile(`{vars\.([\w-]*)}`), "{http.vars.$1}"},
{regexp.MustCompile(`{rp\.([\w-\.]*)}`), "{http.reverse_proxy.$1}"},
{regexp.MustCompile(`{err\.([\w-\.]*)}`), "{http.error.$1}"},
}

for _, sb := range originalServerBlocks {
Expand Down

0 comments on commit 58970ca

Please sign in to comment.