Hi, I encountered some problems regarding using variables in litespeed.
Here is rules:
SecAction "id:15,phase:1,setvar:'tx.test_var=13',pass"
SecAction "id:14,phase:1,initcol:ip=%{REMOTE_ADDR},pass"
SecAction "id:16,phase:1,setvar:ip.b=1,expirevar:ip.b=%{tx.test_var},pass"
SecAction "id:17,setvar:ip.c=%{ARGS.log},pass"
Here is errors from log:
2014-10-21 17:47:06.984 ERROR [ModSecurity] expirevar: invalid expire time, must be integer. while parsing: b=%{tx.test_var}
2014-10-21 17:47:06.984 ERROR [ModSecurity] failed to parse a modsec variable. while parsing: %{ARGS.log}
Documentation:
https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#macro-expansion
Any ideas ?
Here is rules:
SecAction "id:15,phase:1,setvar:'tx.test_var=13',pass"
SecAction "id:14,phase:1,initcol:ip=%{REMOTE_ADDR},pass"
SecAction "id:16,phase:1,setvar:ip.b=1,expirevar:ip.b=%{tx.test_var},pass"
SecAction "id:17,setvar:ip.c=%{ARGS.log},pass"
Here is errors from log:
2014-10-21 17:47:06.984 ERROR [ModSecurity] expirevar: invalid expire time, must be integer. while parsing: b=%{tx.test_var}
2014-10-21 17:47:06.984 ERROR [ModSecurity] failed to parse a modsec variable. while parsing: %{ARGS.log}
Documentation:
https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#macro-expansion
Any ideas ?