ModSecurity on Apache : @pmFromFile, is there a document root path variable?

115 Views Asked by At

I'm trying to set rules for Mod-Security on Apache (Windows) in file modsecurity.conf

When using operator @pmFromFile, is it possible to use Apache variable %{DOCUMENT_ROOT} to set the path of the txt file ?

I have tried things like this, but its not recognized:

SecRule REQUEST_URI "@pmFromFile %{DOCUMENT_ROOT}/whitelist.txt" "phase:1,id:1,allow"

Is there a special syntax for that ?

Thank you for any help.

0

There are 0 best solutions below