On Fri, Dec 10, 2021 at 03:35:34PM +0100, Willy Tarreau wrote:
> > If I browse https://www.haproxy.org/, the links to haproxy.com do not work.
> > Clicking on the banners on the left ("Looking for support?", "Looking for
> > Easy?",...) I land on a 404 not found.
> >
> > http://www.haproxy.org/external?link=1 -> works
> > https://www.haproxy.org/external?link=1 -> 404
> >
> > Sorry for the OT
>
> Thank you for reporting, I'll check!
So in the end I got caught by H2 and an old "url" rule:
http-request redirect ... if { url /external?link=1 }
This one was used to match both the path and the query string in the
past, but with H2 it's missing the host component so it never matches.
I replaced it with "pathq" instead and now it works.
That's a good reminder to get rid of the "url" directive when H2 is
being used. Unfortunately I don't see any way to warn about this at
config time :-/
Thanks again,
Willy