A quick run through of what I've done:
apt-get install libapache-mod-securitya2enmod mod-security- create
/etc/apache2/mod_security_rules/withbase_rulesandoptional_rulesfrom the latest core rules set - create
/etc/apache2/conf.d/mod_securityas below - create
/var/www/test.phpas below
The conf file looks like
<IfModule security2_module>
Include /etc/apache2/mod_security_rules/*.conf
Include /etc/apache2/mod_security_rules/base_rules/*.conf
Include /etc/apache2/mod_security_rules/optional_rules/*.conf
</IfModule>
test.php looks like
<?php
$secret_file = $_GET['secret_file'];
include ( $secret_file);
?>
which several sites say mod_security should block.
My problem is that accessing test.php?secret_file='whatever' shows me the file.
Is this normal, and is mod_security working, or if not, what do I need to change?