Forum Discussion
Colin_Walker_12
Jan 05, 2009Historic F5 Account
You can get the iRule editor in the Labs section of DevCentral, here - Click here
The code you're trying looks fine, though, so I'm not sure where the 409 response is coming from. I might try adding some parenthesis to clear up the logic flow a bit, like this:
when HTTP_REQUEST {
if { ([HTTP::uri] ends_with "index_out.html") or ([HTTP::uri] ends_with "loginForm.jsp") or ([HTTP::path] ends_with ".gif") or ([HTTP::cookie exists "User-Name"]) } {
log local0. "URI is [HTTP::uri]"
pool pool_pluse_web
} else {
HTTP::redirect "https://[HTTP::host]/index_out.html"
}
}
I also noticed that you have "pluse" for a pool name in the iRule instead of "pulse", but that would throw a different error at compile if the pool name didn't match. Other than that though, it looks fine.
Colin