http: A little more polish on rewrite handler and try_files directive

This commit is contained in:
Matthew Holt committed 2020-01-11 13:47:42 -07:00
1 parent d876de61e5
commit 25dea2903e
5 files changed
+51 -48

No files matched your search

@@ -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},