Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

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

2 Answers 2

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 ?

-edit-

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

 
discard

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.