Forum Discussion
mb_shankr_22532
Nimbostratus
Oct 04, 2015need help to create an irule to append an uri and redirect with conditions...
Hi all, need ur help pls. I have an URL: abc.test.com, pointing to http vip with mapped pool-1111. I also have another pool-2222 created with same members but different ports. pool-2222 is not mapped...
Hannes_Rapp_162
Nacreous
Oct 04, 2015Hello,
If you do not have other HTTP hosts besides 'abc.test.com' serviced via the same Virtual Server, we can make it a bit slimmer. If you have any questions and are uncertain why the code is exactly as it is, let me know and I'll explain
when HTTP_REQUEST {
switch [HTTP::host][string tolower [HTTP::path]] {
"abc.test.com/" {
HTTP::path "/test1"
pool pool-1111
}
"abc.test.com/test1" -
"abc.test.com/test1/" {
pool pool-1111
}
"abc.test.com/test2" -
"abc.test.com/test2/" {
pool pool-2222
} default {
pool MyDefaultPool
}
}
}mb_shankr_22532
Nimbostratus
Oct 04, 2015I do not have other HTTP hosts besides 'abc.test.com' serviced via the same Virtual Server
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