Forum Discussion
CraigM_17826
Altocumulus
Aug 30, 2007iRules not always being processed?
Hi everyone,
we are noticing a small issue when people connect to a virtual server on our BigIP. For some users the initial connection fails and the browser reports that the page is not acce...
CraigM_17826
Altocumulus
Aug 31, 2007Ok, Wschultz, your suggestions were spot on. I've also gone over some of the tests and they were in fact doubling up.
Although the sample iRule you supplied worked, it's scope was a little to broad, basically anything with our hostname was redirected. (I realise my original iRule did this, but it was an oversight) Whilst this can be good, I'm not sure if this is the exact behaviour we want, so I'm tossing up between what you suggested and this
if {[HTTP::uri] equals "/"}{
HTTP::redirect "https://mycomp.com.au/wps/portal"
return 0
}
this seems to work fine for these
http://mycomp.com.au
http://mycomp.com.au/
and generates a typical URL not found for
http://mycomp.com.au/dddd
as apposed to redirecting to https://mycomp.com.au/wps/portal as your suggestion does.
I think the return 0 statement fixed the reported errors issue though.
I'll take your advice and look at using switch where I can as apposed to 10 or so if blocks I currently have.
Once again, many thanks
Craig
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