Skip to content

Instantly share code, notes, and snippets.

@pepebe
Created August 30, 2013 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepebe/6388349 to your computer and use it in GitHub Desktop.
Save pepebe/6388349 to your computer and use it in GitHub Desktop.
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