Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 18:00 UTC
httpcaddyfile: Add `{err.*}` placeholder shortcut (#4798)
Francis Lavoie committed
May 24, 2022 at 12:06 UTC
58970cae9265931a15be3b143e49a29931832106
1 file changed
+1
caddyconfig/httpcaddyfile/httptype.go
+1
@@ -107,6 +107,7 @@ func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock,
107
{regexp.MustCompile(`{re\.([\w-]*)\.([\w-]*)}`), "{http.regexp.$1.$2}"},
108
{regexp.MustCompile(`{vars\.([\w-]*)}`), "{http.vars.$1}"},
109
{regexp.MustCompile(`{rp\.([\w-\.]*)}`), "{http.reverse_proxy.$1}"},
110
+ {regexp.MustCompile(`{err\.([\w-\.]*)}`), "{http.error.$1}"},
111
}
112
113
for _, sb := range originalServerBlocks {