Forum Discussion
Ronak_79648
Nimbostratus
Jan 05, 2009HTTP Error 408 / 409 -- iRules from 4.x to 9.x
I have simple iRules in 4.x which allows login page for everyone over https. Login process puts the cookie to client and all other request needs to have cookie to access.
When I try to take sa...
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
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
