Tag Info

Hot answers tagged

5

You can use mod_version (link) <IfVersion >= 2.4> Require all granted </IfVersion> <IfVersion < 2.4> Order allow,deny Allow from all </IfVersion>


3

Monitoring file accesses. You can use the linux auditd daemon to do that. apt-get install auditd auditctl -a always,exit -F dir=/var -F pid=1005 And it should start logging (on Ubuntu, to /var/log/audit/audit.log by default) all accesses to files in /var made by pid 1005. You can fine-tune the rules to filter more precisely what you want to log. ...


1

While waiting for an answer I seem to have found the solution: <IfModule mod_authz_core.c> # Apache 2.4 Require all granted </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order deny,allow Allow from all </IfModule> Apparently you can check for existence of specific modules and make Apache2 do stuff ...



Only top voted, non community-wiki answers of a minimum length are eligible