I'm looking for a way to route http request packets that arrive at our gateway to different hosts based on the contents of the http header. For example, requests for
www.onedomain.com should be routed to one host, while requests to
www.anotherdomain.com are to be routed to a different host.
Someone suggested using Squid in a reverse kinda way, but that seems kludgy.
The "strings" extension to iptables is reported to be dodgy.
Another suggestion is Apache reverse proxy.
If you've done this before, or know how to do it, please respond.