Forum Discussion
mb_shankr_22532
Oct 04, 2015Nimbostratus
need 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
Nimbostratus
Hello,
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
Oct 04, 2015Nimbostratus
I do not have other HTTP hosts besides 'abc.test.com' serviced via the same Virtual Server
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