Forum Discussion
rajeshgoud
Altostratus
Sep 30, 2016iApp template help required
I am looking for a help in building an iApp template with Single VIP IP attached with iRule with Dev, Prod and QA pools based on URL redirection. Example
ABC1.abc.com -> Single VIP IP with dev, ...
Jinshu
Cirrus
Sep 30, 2016If your requirement is to create a VIP and redirect the traffic based on the hostname, below irule might help you.
Create VIP and associate irule in there.
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "abc1.abc.com") } {
pool qa_pool
}
if { ([string tolower [HTTP::host]] equals "abc2.abc.com") } {
pool dev_pool
} else {
pool prod_pool
}
}
-Jinshu
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