caddy/caddyhttp
AndreKR 4bad5c79be Simple rewrite regex captures (#2592)
* More informative rewrite test output

When running rewrite tests, the output in case of a test failure now
includes not only the rewritten URLs but also the from URL.

* Move re-escaping to regexpMatches

This commit moves the code to post-process the match replacements from
ComplexRule to regexpMatches, so it can later be re-used for SimpleRule.

Also changes the comment in an attempt to better explain the reasoning
behind that code.

The required strings.Replacer is now built only once.

* Support regex captures in simple rewrite rules

Closes #2586
2019-05-24 12:00:27 -06:00
..
basicauth fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
bind Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
browse fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
errors errors: Return parse error if more than one argument (#2472) 2019-03-04 12:00:28 -07:00
expvar Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
extensions Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
fastcgi fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
gzip gzip: Add .wasm (WebAssembly files) (#2624) 2019-05-24 09:59:06 -06:00
header fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
httpserver httpserver: Add pubsub plugin (#2589) 2019-04-26 12:32:43 -06:00
index Implement per-site index (#1906) 2017-10-29 21:13:10 +00:00
internalsrv fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
limits fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
log fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
markdown fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
mime Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
pprof Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
proxy fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
push fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
redirect fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
requestid fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
rewrite Simple rewrite regex captures (#2592) 2019-05-24 12:00:27 -06:00
root Fix spelling (#2448) 2019-01-29 10:51:10 -07:00
staticfiles fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
status Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
templates fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
timeouts Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
websocket fix lint warnings (issue 2541) (#2551) 2019-04-22 10:20:37 -06:00
caddyhttp_test.go caddyhttp: Fix test (adjust plugin counting) 2019-02-08 12:43:20 -07:00
caddyhttp.go startup/shutdown: Remove deprecated startup/shutdown directives (#2033) 2018-02-21 10:56:09 -07:00