On Tue, Dec 17, 2019 at 08:41:55AM +0100, Julien Pivotto wrote:
> On 17 Dec 06:58, Willy Tarreau wrote:
> > On Tue, Dec 17, 2019 at 06:08:56AM +0100, Willy Tarreau wrote:
> > > But now I'm starting to suspect that most of the problem comes from the
> > > fact that people who used to rely on regex in the past will not as easily
> > > perform their rewrites using set-path as they would using a replace rule
> > > which is very similar to the old set. So probably we'd need to introduce
> > > a "replace-path" action and suggest it in the warning emitted for reqrep.
> > > 
> > > I think it is important that we properly address such needs and am
> > > willing to backport anything like this to 2.1 to ease the transition if
> > > that's the best solution.
> > 
> > What about this ? It does exactly what's needed for me. It's self-contained
> > enough that we could get it backported to 2.1 and maybe even to 2.0 (though
> > it would require some adaptations to legacy mode there).
> > 
> > Willy
> 
> I am in favour of replace-path.
> Should we have a replace-domain or so for the first part of the abs url?

Technically speaking it's called the authority. And since we take great
care to keep it synchronized with the Host header field, actually one
can simply decide to adjust the Host header to adjust this part. I'm
just realizing that we should mention this in the doc as well.

Willy

Reply via email to