1
0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-03-27 23:51:48 +01:00
caddy/modules/caddyhttp
Francis Lavoie 61c75f74de
caddyhttp: Explicitly disallow multiple regexp matchers ()
* caddyhttp: Explicitly disallow multiple regexp matchers

Fix 

Since the matchers would overwrite eachother, we should error out to tell the user their config doesn't make sense.

* Update modules/caddyhttp/matchers.go

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2022-09-13 11:18:37 -06:00
..
caddyauth Remove unnecessary error check 2022-09-05 13:42:59 -06:00
encode zstd: fix typo in comment () 2022-08-25 12:00:05 +03:00
fileserver fileserver: Ignore EOF when browsing empty dir 2022-09-07 21:14:11 -06:00
headers headers: Only replace known placeholders () 2022-07-12 12:16:03 -06:00
map map: Coerce val to string, fix 2022-09-01 21:15:44 -06:00
push caddyhttp: Support respond with HTTP 103 Early Hints () 2022-09-05 13:50:44 -06:00
requestbody requestbody: Return HTTP 413 (fix ) 2022-03-11 12:34:55 -07:00
reverseproxy reverseproxy: Close hijacked conns on reload/quit () 2022-09-02 17:01:55 -06:00
rewrite caddyhttp: Smarter path matching and rewriting () 2022-08-16 08:48:57 -06:00
standard reverseproxy: Support performing pre-check requests () 2022-05-06 10:50:26 -04:00
templates templates: Document httpError function () 2022-09-01 22:07:52 -06:00
tracing cmd: Use newly-available version information () 2022-08-04 11:16:59 -06:00
app.go core: Refactor listeners; use SO_REUSEPORT on Unix () 2022-09-02 16:59:11 -06:00
autohttps.go Minor style adjustments for HTTP redir logging 2022-09-02 13:04:31 -06:00
caddyhttp.go caddyhttp: Smarter path matching and rewriting () 2022-08-16 08:48:57 -06:00
caddyhttp_test.go caddyhttp: Smarter path matching and rewriting () 2022-08-16 08:48:57 -06:00
celmatcher.go chore: Bump up to Go 1.19, minimum 1.18 () 2022-08-02 16:39:09 -04:00
celmatcher_test.go Expose several Caddy HTTP Matchers to the CEL Matcher () 2022-06-22 18:53:46 -04:00
errors.go requestbody: Return HTTP 413 (fix ) 2022-03-11 12:34:55 -07:00
httpredirectlistener.go caddyhttp: Move HTTP redirect listener to an optional module () 2022-02-19 15:36:36 -07:00
marshalers.go caddyhttp: Make logging of credential headers opt-in () 2021-12-02 13:26:24 -07:00
matchers.go caddyhttp: Explicitly disallow multiple regexp matchers () 2022-09-13 11:18:37 -06:00
matchers_test.go caddyhttp: Smarter path matching and rewriting () 2022-08-16 08:48:57 -06:00
metrics.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
replacer.go fileserver: Support glob expansion in file matcher () 2022-09-05 13:53:41 -06:00
replacer_test.go fileserver: Support glob expansion in file matcher () 2022-09-05 13:53:41 -06:00
responsematchers.go General minor improvements to docs 2021-09-24 18:31:01 -06:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy () () 2021-05-02 12:39:06 -06:00
responsewriter.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. () 2022-09-07 21:13:35 +01:00
responsewriter_test.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. () 2022-09-07 21:13:35 +01:00
routes.go chore: Bump up to Go 1.19, minimum 1.18 () 2022-08-02 16:39:09 -04:00
server.go Very minor tweaks 2022-09-08 13:10:40 -06:00
staticerror.go httpcaddyfile: Add error directive for the existing handler () 2021-03-12 13:25:49 -07:00
staticresp.go caddyhttp: Support respond with HTTP 103 Early Hints () 2022-09-05 13:50:44 -06:00
staticresp_test.go Move from deprecated ioutil to os and io packages () 2021-09-29 11:17:48 -06:00
subroute.go reverseproxy: Enable changing only the status code (close ) 2020-06-04 12:06:38 -06:00
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00