Simon_Chan_1115
Jul 04, 2007Nimbostratus
irule for handling jpg, bmp request
Hi,
we want to use other new pool or servers for handling static page request such as .jpg, bmp, mp3 etc.
and now we already had the following irule running:
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
anyone know if we want to pass static request to other servers/pool, what we can to modify?
Regards
Simon.