I have the following iRule. The HTTP_REQUEST successfully redirects but the HTTP_RESPONSE never gets executed. I have tried adding the iRule HTTP_Response to both the Source and Destination Virtual Servers but nothing is ever logged showing the message in the HTTP_RESPONSE. How do I get the HTTP_RESPONSE event to be triggered?
when RULE_INIT { set ::mylearning_hostname “mylearning.corp.dom”
set ::elearning_hostname “testelearning.corp.dom” set ::root_redirect_uri “/ADKAR/ADKAR.htm” set ::proxy_site_debug 1
}
when HTTP_REQUEST { log local0. “REQUEST TRIGGERED” if { $path starts_with “/testelearning” } { HTTP::redirect “https://$::elearning_hostname$::root_redirect_uri” } }
when HTTP_RESPONSE {
log local0. “RESPONSE TRIGGERED” }