I wanted a HAProxy config which accepts requests on PORT X and in the backend it send the request to the Host extracted from the request packet.
I have a sample nginx