Make wordpress work with mod security.

Configuring Ubuntu, F.A.Q.'s, How To's, P.C. Linux, Ubuntu, Ubuntu Server

For part of the example I have replaced <> with left carrot and right carrot.

You will need to do two things:

nano /etc/modsecurity/exclude.conf

It should look like this:

left carrot LocationMatch “/wp-admin/post.php” right carrot
SecRuleRemoveById XXXXXX
left carrot /LocationMatch right carrot

Now add this to your virtual hosts file in apache:

 nano /etc/apache2/sites-available/yourdomain.com

Add the following somewhere in the file:

SecRuleInheritance Off

Done

No Comments

Leave a Reply

You must be logged in to post a comment.