How can I Redirect all http URL to same http URL


#1

I am looking for a solution that can redirect all source incoming http/https requests and pass that along to the backend equivalent of the source URL.

Ie. An incoming http request for abc.example.com or example.com is received, haproxy simply forwards the request to abc.example.com or example.com and passes the response back to the host. Key is this needs to be dynamic in nature, I dont want to have to define the frontend an backend servers, just a catch all solution.


#2

Hi gdinardo -

Something that dynamic probably won’t work with HAProxy. Consider something like Squid, which may better meet your needs.

  • Andrew