Forum Discussion
- Kumar_ThotaAltocumulus
This is the irule which is in place.
when ACCESS_PER_REQUEST_AGENT_EVENT {
set id [ACCESS::perflow get perflow.irule_agent_id]
set mylandinguri [ACCESS::session data get "session.server.landinguri"]
if { $id eq "403" } {
log local0. "Hit first iRule agent in PR policy"
ACCESS::session remove
HTTP::respond 302 "Location" "service-dev.wecenergygroup.com/rest/" "Connection" "Close"
}
}
when HTTP_REQUEST {
if {
[HTTP::uri] eq "/rest/"}{
log local0. "URI found"
HTTP::respond "403"
}
}
If any suggestions that would be appreciated.
- ivanbermejochamNimbostratus
For any other interested in the future, I solved it using a flag variable in ACCESS_PER_REQUEST_AGENT_EVENT event, and using HTTP::respond in HTTP_RESPONSE_RELEASE event.