Forum Discussion
Irule to match and redirect on port / URI condition
Actually Having thought about it, I guess that I could just build the Virtual Servers to listen on the Return ports..
when HTTP_REQUEST {
switch [string tolower [HTTP::host] [TCP::local_port]] { "site1.somesite.com" { HTTP::redirect "http://site1.somesite.com:8001/App1[HTTP::uri]" return } "site2.somesite.com" { HTTP::redirect "http://site2.somesite.com:8002/App2[HTTP::uri]" return } } }
Then the return http :port would just be collected by the other VIP and forwarded to the relevant Pool attached to that VS
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com