caddy/modules/caddyhttp
Matthew Holt 178ba024fe
httpcaddyfile: Put root directive first, before redir and rewrite
See https://caddy.community/t/v2-match-any-path-but-files/7326/8?u=matt

If rewrites (or redirects, for that matter) match on file existence,
the file matcher would need to know the root of the site.

Making this change implies that root directives that depend on rewritten
URIs will not work as expected. However, I think this is very uncommon,
and am not sure I have ever seen that. Usually, dynamic roots are based
on host, not paths or query strings.

I suspect that rewrites based on file existence will be more common than
roots based on rewritten URIs, so I am moving root to be the first in
the list.

Users can always override this ordering with the 'order' global option.
2020-03-28 19:07:51 -06:00
..
caddyauth caddyauth: Add Metadata field to caddyauth.User (#3174) 2020-03-27 11:10:51 -06:00
encode Remove some non-essential plugins from this repo (#2780) 2020-03-24 10:37:47 -06:00
fileserver file_server: Fix dumb error check I must have written at 1am 2020-03-24 16:48:04 -06:00
headers header: caddyfile: Defer header operations for deletions or manually 2020-02-04 11:05:32 -07:00
requestbody Remove some non-essential plugins from this repo (#2780) 2020-03-24 10:37:47 -06:00
reverseproxy reverse_proxy: Upstream.String() method returns either LookupSRV or Dial 2020-03-27 14:29:01 -06:00
rewrite httpcaddyfile: Unify strip_prefix, strip_suffix, uri_replace directives (#3157) 2020-03-19 11:51:28 -06:00
standard Remove some non-essential plugins from this repo (#2780) 2020-03-24 10:37:47 -06:00
templates templates: Enable Goldmark's footnote extension (closes #3136) 2020-03-18 23:38:37 -06:00
app.go caddyhttp: Clean up; move some code around 2020-03-15 21:28:42 -06:00
autohttps.go caddyhttp: Always provision ACME issuers (fix terms agree error) 2020-03-23 12:21:39 -06:00
caddyhttp.go httpcaddyfile: Put root directive first, before redir and rewrite 2020-03-28 19:07:51 -06:00
celmatcher.go go.mod: Update some deps; add new Strings lib to CEL matcher 2020-03-20 08:53:40 -06:00
errors.go http: Change routes to sequential matcher evaluation (#2967) 2020-01-09 10:00:13 -07:00
marshalers.go http: Fix ciphersuite logging 2020-01-16 15:44:49 -06:00
matchers_test.go caddyhttp: Support path matcher of "*" without panic 2020-03-16 16:08:33 -06:00
matchers.go reverse_proxy: Add support for SRV backends (#3180) 2020-03-24 10:53:53 -06:00
replacer_test.go Refactor for CertMagic v0.10; prepare for PKI app 2020-03-06 23:15:25 -07:00
replacer.go Refactor for CertMagic v0.10; prepare for PKI app 2020-03-06 23:15:25 -07:00
responsewriter.go http: Always set status code via response recorder 2020-01-08 18:37:41 -07:00
routes.go httpcaddyfile: Fix nested blocks; add handle directive; refactor 2020-01-16 17:08:52 -07:00
server.go caddyhttp: Specify default access log for a server (fix #3185) 2020-03-24 13:21:18 -06:00
staticerror.go Export Replacer and use concrete type instead of interface 2019-12-29 13:12:52 -07:00
staticresp_test.go Implement config adapters and beginning of Caddyfile adapter 2019-08-09 12:05:47 -06:00
staticresp.go httpcaddyfile: Update directive docs; put root after rewrite 2020-01-22 09:32:38 -07:00
subroute.go http: Fix subroutes, ensure that next handlers can still be called 2020-01-12 13:39:32 -07:00
vars.go v2: Implement RegExp Vars Matcher (#2997) 2020-02-08 12:26:31 -07:00