Forum Discussion
Jeff_McCombs_42
Nimbostratus
May 03, 2006multiple rules in a single virtual server
Gurus,
Perhaps I'm just blind but I haven't seen anything on this in my cursory lookthru the documentation and online.
What I'd like to be able to do, is string two rules togther under a vi...
Deb_Allen_18
May 04, 2006Historic F5 Account
Hi Jeff --
You should be able to apply multiple rules to a virtual server even if both include the same events. The event processing is in the order in which the rules are applied to the virtual.
Not sure why your VS seems to stop working with both applied, but here are some suggestions to help you figure it out:
1) You might want to use the "return" statement to explicitly end the processing within that event once the appropriate decisions have been made. That will prevent the same event in the next rule from executing.
2) I also try to avoid selecting pools/making LB decisions in both rules, instead opting for a front end rule to handle redirection on weak encryption, HTTP to HTTPS redirects, header sanitization & other security considerations, with a second load balancing rule applied after to actually do the traffic management (URI switching/re-writing/etc).
3) Add logging statements in each event & conditional section of code to highlight which lines are executing, and give you some more clues about how your rule is processing traffic.
HTH
/deb
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
