Hi. I'm trying to use haproxy as a http proxy for certain urls. My plan is to specify always the haproxy in the client and to decide in haproxy if an "upstream" proxy should be used or if the connection should be made "direct" without an additional proxy configured within haproxy.
I took a look at the documentation, but I couldn't find an option to say that the connection should simply made directly by haproxy as "passthrough" and not via backend/server delegation. Is that even possible with haproxy? To make direct connections to the origin address which came in via http request? If I leave the backend definition empty (without specifying a "server"), haproxy returns a 503, complaining about <NOSRV> in the log. So how can I tell haproxy to create the connection to original url by itself instead of delegating it to an upstream proxy? Any hints? Thanks in advance.

