Forum Discussion
amit_128525
Nimbostratus
Mar 14, 2013irule for port redirection not working
Hello all ,
My first question here :-)
I have a public url which works on tcp port 4000 what we are trying to do is use port 80 instead of 4000 , I have created Irule in f5 BIG-IP 1...
amit_128525
Nimbostratus
Mar 15, 2013Thanks 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/"
}
}
***********************************
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects