]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: add a new "replace-path" action
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2019 05:52:51 +0000 (06:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Dec 2019 08:24:57 +0000 (09:24 +0100)
commit262c3f1a00a901bfe4a3d6785155e1c02cf8039a
treec02a9e19812600dffce620482c361ba52e743c90
parent0851fd5eef89c790f18b996093111fe00c840bd6
MINOR: http: add a new "replace-path" action

This action is very similar to "replace-uri" except that it only acts on the
path component. This is assumed to better match users' expectations when they
used to rely on "replace-uri" in HTTP/1 because mostly origin forms were used
in H1 while mostly absolute URI form is used in H2, and their rules very often
start with a '/', and as such do not match.

It could help users to get this backported to 2.0 and 2.1.
doc/configuration.txt
src/cfgparse-listen.c
src/http_act.c