ProxyPass and deprecated directives

Hi,

I am trying to mimic Apache ProxyPass feature with HAProxy.

The example found here is interesting : HOWTO Write Apache ProxyPass* Rules in HAProxy - HAProxy Technologies

But I would like to start with a “futureproof” setup and as configuration directives like “reqrep” are deprecated, I need to adapt this example.

Unfortunately, I was not able to do that so far.

Does someone have a working example without these directives ?

Regards