Forum Discussion
eey0re
Aug 27, 2013Cirrostratus
To expand on nitass' answer a little.. you can't do what you're after if it's not HTTP, unless there is something in the TCP payload that you can parse. You'd do that using TCP::collect, and it could get tricky.
An HTTP server only knows what hostname a client used to arrive because the client sends it as an HTTP header. With plain TCP, there is no way to tell.
Secondly, you say you want to "redirect" the client. You can't do that with plain TCP either. HTTP::redirect works by sending an HTTP response telling the client to go to another URL. With plain TCP, there is no way to "redirect" the client. (You could, however, use TCP::collect to make a load balancing decision - e.g. select a different pool.)