@@ -52,19 +52,27 @@ func NewShorthandReplacer() ShorthandReplacer {
52
52
// be used in the Caddyfile, and the right is the replacement.
53
53
func placeholderShorthands () []string {
54
54
return []string {
55
- "{dir}" , "{http.request.uri.path.dir}" ,
56
- "{file}" , "{http.request.uri.path.file}" ,
57
55
"{host}" , "{http.request.host}" ,
58
56
"{hostport}" , "{http.request.hostport}" ,
59
57
"{port}" , "{http.request.port}" ,
58
+ "{orig_method}" , "{http.request.orig_method}" ,
59
+ "{orig_uri}" , "{http.request.orig_uri}" ,
60
+ "{orig_path}" , "{http.request.orig_uri.path}" ,
61
+ "{orig_dir}" , "{http.request.orig_uri.path.dir}" ,
62
+ "{orig_file}" , "{http.request.orig_uri.path.file}" ,
63
+ "{orig_query}" , "{http.request.orig_uri.query}" ,
64
+ "{orig_?query}" , "{http.request.orig_uri.prefixed_query}" ,
60
65
"{method}" , "{http.request.method}" ,
66
+ "{uri}" , "{http.request.uri}" ,
61
67
"{path}" , "{http.request.uri.path}" ,
68
+ "{dir}" , "{http.request.uri.path.dir}" ,
69
+ "{file}" , "{http.request.uri.path.file}" ,
62
70
"{query}" , "{http.request.uri.query}" ,
71
+ "{?query}" , "{http.request.uri.prefixed_query}" ,
63
72
"{remote}" , "{http.request.remote}" ,
64
73
"{remote_host}" , "{http.request.remote.host}" ,
65
74
"{remote_port}" , "{http.request.remote.port}" ,
66
75
"{scheme}" , "{http.request.scheme}" ,
67
- "{uri}" , "{http.request.uri}" ,
68
76
"{uuid}" , "{http.request.uuid}" ,
69
77
"{tls_cipher}" , "{http.request.tls.cipher_suite}" ,
70
78
"{tls_version}" , "{http.request.tls.version}" ,
0 commit comments