Forum Discussion
JamesS_40157
Aug 29, 2012Nimbostratus
Try next irule (or different virtual server) if 404 response
Hi,
We are currently implementing a new virtual server to replace a legacy one, essentially it is a giant media (image) server. The legacy virtual server has a quite complicated irule i...
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
}
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