Forum Discussion
need help to create an irule to append an uri and redirect with conditions...
I tried ur suggestion upside down and now am getting error while trying to access both: abc.test.com and abc.test.com/test2. Below is what I tried:
First I changed the default pool mapped to VS from pool-1111 to pool-2222. Then modified the irule as:
when HTTP_REQUEST {
switch [HTTP::host][string tolower [HTTP::path]] { "abc.test.com/test2" { pool pool-2222 } "abc.test.com/" - "abc.test.com/" { HTTP::path "/test1" pool pool-1111 } "abc.test.com/test1" - "abc.test.com/test1/" { pool pool-1111 } default { pool MyDefaultPool } }
}
- mb_shankr_22532Oct 04, 2015
Nimbostratus
Ignoring my above modified irule and considering only the irule suggested by you, I assume that basically I get the error when trying to redirect to a remote pool... am sure the solution is pretty much close but dunno what is it hiding behind!!.. someone, pls help me out here..
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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