Forum Discussion
Niles_245942
Mar 22, 2016Nimbostratus
Hi Santhalis & Richard, Thanks for your input. I have considered your comments and edited the irule below. I can see http-class profiles have been converted by the big-ip to local policies which includes multiple policy rules. What I am trying to achieve below is that to disable ASM if http uri contains "/Results/StudyTemplate/Save" as below.
when HTTP_CLASS_SELECTED {
ASM::enable
if { [HTTP::path] equals "/Results/StudyTemplate/Save" } {
ASM::disable
}
}
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/Results/StudyTemplate/Save" } {
ASM::disable
}
HTTP::header insert X-Forwarded-For [IP::remote_addr]
switch -glob [string tolower [HTTP::host]] {
"*recruitment*" {
pool DMZ_WEBv01
return
}
"*recruitmentstage*" {
Define appropriate pool for webserver hosting web site
pool DMZ_WEBv02
return
}
}
}
Please let me know if you have any comments.
Regards, Niles