Forum Discussion
JamesS_40157
Aug 29, 2012Nimbostratus
Isn't it funny how sometimes when you post a question you immediately think of the answer? :)
For future ref for anyone who might need it...
Within HTTP_RESPONSE:
if { $partition eq "prod" && ([HTTP::status] eq "404") } {
if { $debug>=3 } { log local0.info "$castoruri not found in $partition castor domain. Falling back to legacy irule" }
set trylegacy 1
HTTP::retry $request
}
within HTTP_REQUEST:
if { [info exists trylegacy] && $trylegacy == 1 } {
if { $debug>=3 } { log local0.info "LEGACY REQUEST INITIALISED for $castoruri in $partition castor domain" }
virtual legacyvirtual
return
}