Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed libapache-mod-security on Ubuntu 10.04. The only configuration file I've been able to find is this one:

cat /var/lib/dpkg/info/libapache-mod-security.conffiles


However, this does not match the configuration file mentioned in the mod_security documentation. It only tells Apache in which directory to find the module. Where are the mod-security rules stored?

share|improve this question
Here's a HOWTO for 9.04, I suspect it's valid for 10.04 too. Let me know if it helps… – Richard June Mar 28 '11 at 13:02
Hi Richard! Thanks, but that blogpost is missing some images supposedly containing XML code. – ReinoutS Mar 30 '11 at 14:45

Ubuntu is well known to change configuration file without any reason (they did alot with apache).

So try to search the internet for apache conf file in unbuntu or try the locate command (with proper file name) and you'll maybe find what you're searching for.

share|improve this answer

Maybe try /etc/apache2/conf.d/modsecurity2.conf ?


This apparently applies to all versions of Ubuntu: mod_security

share|improve this answer
This file does not exist by default, but it looks like this is the recommended location and filename to use. – ReinoutS Mar 30 '11 at 15:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.