Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Apache mod_security settings for ModX
#Apache mod_security settings for ModX
#SOurce: http://www.faqforge.com/linux/apache-mod_security-settings-for-wordpress-and-modx/
#If you use the apache mod_security module on your apache server, you might encounter wrong 403 errors for several URL’s of the cms systems. Here are some exception rules to avoid that:
<LocationMatch "/manager/index.php">
SecRuleRemoveById 300016
</LocationMatch>
<LocationMatch “/connectors/resource/index.php”>
SecRuleRemoveById 300013 300014 300015 300016
</LocationMatch>
<LocationMatch “/connectors/element/tv.php”>
SecRuleRemoveById 300013 300016
</LocationMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.