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

/etc/apache2/mods-available/mod-security.load

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?

link|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 acidborg.wordpress.com/2009/06/12/… – 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
feedback

2 Answers

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.

link|improve this answer
feedback

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

-edit-

This apparently applies to all versions of Ubuntu: mod_security

link|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
feedback

Your Answer

 
or
required, but never shown

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