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 contain...
James_Quinby_46
Feb 10, 2009Historic F5 Account
In 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
}
}
}
This rule assumes that 'pool_common' is the default pool assigned to your virtual server. If you're looking in the header for 'dfiner.xx.com', you'd want this:
when HTTP_REQUEST {
if { [HTTP::header "Foo"] equals "dfinder.xx.com" } {
pool pool_dfinder
}
}
...though you'd obviously want to change "Foo" to whatever header contains the value 'dfinder.xx.com'.
There's more on testing headers here:
http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__header.html
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