i just corrected bracket and operator.
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] ends_with "ncsi.txt" } {
HTTP::respond 200 content "Microsoft NCSI" noserver Content-Type "text/html" Connection "Close"
}
}
}
[root@ve10:Active] config curl -i http://172.28.19.79/ncsi.txt
HTTP/1.0 200 OK
Content-Type: text/html
Connection: close
Content-Length: 14
Microsoft NCSI