aboutsummaryrefslogtreecommitdiffhomepage
path: root/caddyconfig/httpcaddyfile/shorthands.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2024-12-06 05:10:39 +0800
committerGitHub <[email protected]>2024-12-06 05:10:39 +0800
commitc9faf72444e87727390f28237de50608ce9227fc (patch)
treecebe801547b8aa7c4c26bee5c6ec1e040ffee892 /caddyconfig/httpcaddyfile/shorthands.go
parent182153e827fb36cdc80280c1118fbaed8084366d (diff)
parenta1751adb40fbd2369c044a7fe16ab17e0fdce334 (diff)
downloadcaddy-c9faf72444e87727390f28237de50608ce9227fc.tar.gz
caddy-c9faf72444e87727390f28237de50608ce9227fc.zip
Merge branch 'master' into reverse-proxy-h2-websocketreverse-proxy-h2-websocket
Diffstat (limited to 'caddyconfig/httpcaddyfile/shorthands.go')
-rw-r--r--caddyconfig/httpcaddyfile/shorthands.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/caddyconfig/httpcaddyfile/shorthands.go b/caddyconfig/httpcaddyfile/shorthands.go
index 5d9ef31eb..ca6e4f92c 100644
--- a/caddyconfig/httpcaddyfile/shorthands.go
+++ b/caddyconfig/httpcaddyfile/shorthands.go
@@ -52,19 +52,27 @@ func NewShorthandReplacer() ShorthandReplacer {
// be used in the Caddyfile, and the right is the replacement.
func placeholderShorthands() []string {
return []string{
- "{dir}", "{http.request.uri.path.dir}",
- "{file}", "{http.request.uri.path.file}",
"{host}", "{http.request.host}",
"{hostport}", "{http.request.hostport}",
"{port}", "{http.request.port}",
+ "{orig_method}", "{http.request.orig_method}",
+ "{orig_uri}", "{http.request.orig_uri}",
+ "{orig_path}", "{http.request.orig_uri.path}",
+ "{orig_dir}", "{http.request.orig_uri.path.dir}",
+ "{orig_file}", "{http.request.orig_uri.path.file}",
+ "{orig_query}", "{http.request.orig_uri.query}",
+ "{orig_?query}", "{http.request.orig_uri.prefixed_query}",
"{method}", "{http.request.method}",
+ "{uri}", "{http.request.uri}",
"{path}", "{http.request.uri.path}",
+ "{dir}", "{http.request.uri.path.dir}",
+ "{file}", "{http.request.uri.path.file}",
"{query}", "{http.request.uri.query}",
+ "{?query}", "{http.request.uri.prefixed_query}",
"{remote}", "{http.request.remote}",
"{remote_host}", "{http.request.remote.host}",
"{remote_port}", "{http.request.remote.port}",
"{scheme}", "{http.request.scheme}",
- "{uri}", "{http.request.uri}",
"{uuid}", "{http.request.uuid}",
"{tls_cipher}", "{http.request.tls.cipher_suite}",
"{tls_version}", "{http.request.tls.version}",