HAProxy + Remote desktop Gateway

Hello

Is there a way to configure HAProxy pass “pure” http for RDP clients to RD gateway (we use Win 2019 SRV)?

Now it works if deny remoteDesktopGateway path in config file.

Connections made as RPC over HTTP, not http – as it gets directly connected to RD gateway.

I wanna use HAProxy layer 7 not layer 4 (tcp).

It is possible?

regards

HAPeoxy can act as http or tcp proxy.
Just googled and found

Thank u reply.
As I mentioned – It is not terminal server – it is remote desktop gateway.
Link you provided described RDP connections. In case of remote desktop gateway all connections made via https protocol not RDP.
Now we could achieve “pure” http – only rpc over http.
It is a little bit confused us. All work, but not native as directly connected to MS RD gateway.

Regards