Forum Discussion
amit_128525
Mar 15, 2013Nimbostratus
Thanks for reply I think I didnt clarified completely the setup please find the exact enviroment wiould be really helpful iof anyone can advise .
***********************************
We have an F5 BIG Load balancer.
We want port redirect depending on what the host header is.
i.e. testapp1.domain.com comes in as https or http and redirects to port 4000 to the web\app server.
Then the same web\app server is also running other web sites and apps so it should also be able to handle testapp2.domain.com and redirect to say port 8000 to the same server.
We have tried using the irule below but no luck. It does however shows a hit on the iRule statistics but I do not think it is redirecting the port numbers.
when HTTP_REQUEST {
if { [HTTP::uri] ends_with " adf********.*******.com " } {
redirect to "https://%h:4000/%u/"
}
}
***********************************