mirror of
https://github.com/caddyserver/caddy.git
synced 2026-08-07 04:43:10 -04:00
caddyhttp: Add {?query} placeholder (#6714)
* caddyhttp: Add `{prefixed_query}` placeholder
* fastcgi: Preserve query during canonical redirect
* Use orig_uri instead for the redirect, shorter Caddyfile shortcut
This commit is contained in:
1 parent
16d5b22349
commit
b116dcea3d
8 files changed
+30
-11
No files matched your search
@@ -33,7 +33,7 @@ php_fastcgi @test localhost:9000
|
||||
"handler": "static_response",
|
||||
"headers": {
|
||||
"Location": [
|
||||
"{http.request.orig_uri.path}/"
|
||||
"{http.request.orig_uri.path}/{http.request.orig_uri.prefixed_query}"
|
||||
]
|
||||
},
|
||||
"status_code": 308
|
||||
|
||||
Reference in new issue
Block a user