Forum Discussion
Jace_45978
Nimbostratus
Feb 10, 2009need iRule redirect help
Hi,
I am in the process of converting CSS content/services to LTM Virtuals/members.
I came across two contents with same IP.. a rule is applied to one that says if header contains "dfinder.xx.com" then go to these services. If connection to virtual does not contain "dfinder.xx.com" it will go to the other services associated with the other content.
So I am looking for iRule that I can apply to a single Virtual that says if the request has "dfinder.xx.com" go to pool_dfinder otherwise go to pool_common
I am pretty sure this can be achieved with iRule but being new at iRules I would like some assistance please.
thanks
- James_Quinby_46Historic F5 AccountIn the header? Or somewhere in the URI? If it's in the URI, something along these lines will probably do the trick:
when HTTP_REQUEST { if {[HTTP::uri] equals {dfinder.xx.com}} { pool pool_dfinder } } }
when HTTP_REQUEST { if { [HTTP::header "Foo"] equals "dfinder.xx.com" } { pool pool_dfinder } }
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