Forum Discussion
MW_97676
Apr 15, 2014Nimbostratus
If this is a response coming from the back end server you are load balancing you could apply a stream profile and use an irule to replace the URL:
when HTTP_RESPONSE {
STREAM::expression {@https://www.abc.com/404.php@http://www.abc.com/404.php@}
Enable the stream filter for this response only
STREAM::enable
} else {
Disable the stream filter by default
STREAM::disable
}
}
- MW_97676Apr 15, 2014NimbostratusSorry missed some of the irule when HTTP_RESPONSE { Check if response type is text if {[HTTP::header value Content-Type] contains "text/"}{ STREAM::expression {@https://www.abc.com/404.php@http://www.abc.com/404.php@} Enable the stream filter for this response only STREAM::enable } else { Disable the stream filter by default STREAM::disable } }