Forum Discussion
Gregt_33960
Nimbostratus
May 22, 2008IRULES to append and Web Server Errors
Hello,
I have found this forum extremely helpful as I learn more about IRules. I have multiple application environments running on pools of webservers. I have to set the F5 to pe...
Nicolas_Menant
Employee
May 22, 2008Hi, here is your test:
elseif {[HTTP::uri] starts_with "/train"}{
if {[HTTP::uri] ends_with "/train" }{
HTTP::uri "/train/jsp/common/pgLogin.jsp"
}
you say it MUST ends with /train, so when it ends with /train/ it won't work
you need to add a or statement like this:
{[HTTP::uri] starts_with "/train"}{
if {([HTTP::uri] ends_with "/train") or ([HTTP::uri] ends_with "/train/") }{
HTTP::uri "/train/jsp/common/pgLogin.jsp"
}
But couldn't you do that instead:
elseif {([HTTP::uri] equals "/train") or ([HTTP::uri] equals "/train/")}{
HTTP::uri "/train/jsp/common/pgLogin.jsp"
}
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