Forum Discussion
Kai_Wilke
Feb 18, 2016MVP
Hi Ayrton Miguel Salazar Cortes,
you may try the following syntax as a starting point...
when HTTP_REQUEST {
set asm_policy "/Common/YOUR_ASM_POLICY"
if { $asm_policy ne "" } then {
ASM::enable $asm_policy
} else {
ASM::disable
}
}
Note: Keep in mind that you have to assign at least one ASM_POLICY (could be a dummy policy) to your Virtual Server to execute the
or [ASM::enable]
commands.[ASM::disable]
Cheers, Kai