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:
Francis Lavoie authored and GitHub committed 2024-12-02 08:06:38 -05:00
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