Forum Discussion
Albert_252822
Aug 22, 2016Nimbostratus
ASM iRule events not working
Hi all,
I activated this irule in my Virtual Server:
when HTTP_REQUEST {
set redirect 0
set requri [HTTP::uri]
}
when ASM_REQUEST_BLOCKING {
set redirect 1
}
when HTTP_RESPONSE {...
Stanislas_Piro2
Aug 22, 2016Cumulonimbus
Hi,
you can use HTTP::redirect inside ASM_REQUEST_BLOCKING :
when ASM_REQUEST_BLOCKING {
switch -glob [HTTP::path] {
/url1* { HTTP::redirect "https://url1/index" }
/url2* { HTTP::redirect "https://url2/index" }
/url3* { HTTP::redirect "https://url3/index" }
default { }
}
}
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