mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-19 23:54:56 +00:00
http: A little more polish on rewrite handler and try_files directive
This commit is contained in:
parent
d876de61e5
commit
25dea2903e
5 changed files with 51 additions and 48 deletions
|
|
@ -149,7 +149,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
|
|||
}),
|
||||
}
|
||||
rewriteHandler := rewrite.Rewrite{
|
||||
URI: "{http.matchers.file.relative}?{http.request.uri.query}",
|
||||
URI: "{http.matchers.file.relative}",
|
||||
}
|
||||
rewriteRoute := caddyhttp.Route{
|
||||
MatcherSetsRaw: []caddy.ModuleMap{rewriteMatcherSet},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue