Forum Discussion
elito_26780
Nimbostratus
Mar 19, 2007Evaluating only first HTTP request in HTTP 1.1
I need to evaluate only first request in HTTP 1.1 packet and than select the appropriate pool. When I use HTTP_REQUEST, the rule evaluates every HTTP request it sees in HTTP 1.1 packet and then choose...
Deb_Allen_18
Mar 20, 2007Historic F5 Account
Assuming that there are several requests in a single Keep-Alive connection (rather than in a single packet), you could disable the HTTP_REQUEST event after the first request is seen, then that pool will be used for the life of the connection:
when HTTP_REQUEST {
if { [HTTP::uri] contains ".gif"} {
pool servers2
} else {
pool servers1
}
event disable
}
(Should have thought of that yesterday, I guess -- sorry!)
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