Forum Discussion
Slumlorde_21011
Nimbostratus
Apr 20, 2016Redirect Question
Trying to find the best way to load balance Kibana/Marvel(Pieces of an ELK stack). This is what I've got and what I would like to do(Not the most F5 savvy just know the basics to editing VIP/iRules/P...
shopkeeper56_23
Cirrostratus
Apr 22, 2016Yep this is a very common iRule.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.abc.com" } {
pool abc_pool
HTTP::uri /apps/abc[HTTP::uri]
} elseif { [string tolower [HTTP::host]] equals "www.cde.com" } {
pool cde_pool
HTTP::uri /apps/cde[HTTP::uri]
} else {
pool default_pool
}
}
shopkeeper56_23
Cirrostratus
Apr 22, 2016Actually I think i might have miss-understood your scenario. I think what you're actually trying to do is... After the pool decision is made (presumably using an irule similar to the above) you want to append the "/apps/xyz" uri onto the HTTP request?
I've updated my answer to append the URI and also direct traffic to the correct pool based on HTTP host.
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