<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_disable_mod_security_per_vhost</id>
		<title>How to disable mod security per vhost - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=How_to_disable_mod_security_per_vhost"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_disable_mod_security_per_vhost&amp;action=history"/>
		<updated>2026-06-04T07:09:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=How_to_disable_mod_security_per_vhost&amp;diff=843&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to disable mod_security per vhost==  ModSecurity is an open source intrusion detection and prevention engine for web applications. It operates embedded into the web serv...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=How_to_disable_mod_security_per_vhost&amp;diff=843&amp;oldid=prev"/>
				<updated>2015-06-06T15:12:58Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to disable mod_security per vhost==  ModSecurity is an open source intrusion detection and prevention engine for web applications. It operates embedded into the web serv...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to disable mod_security per vhost==&lt;br /&gt;
&lt;br /&gt;
ModSecurity is an open source intrusion detection and prevention engine for web applications. It operates embedded into the web server, acting as a powerful umbrella - shielding web applications from attacks.&lt;br /&gt;
&lt;br /&gt;
===Disable mod_security version 2===&lt;br /&gt;
&lt;br /&gt;
You will want to add the following to the vhost file to disable mod_security2&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_security2.c&amp;gt;&lt;br /&gt;
   SecRuleEngine Off&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Disable mod_security version 1===&lt;br /&gt;
&lt;br /&gt;
You will want to add the following to the vhost file to disable mod_security&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_security.c&amp;gt;&lt;br /&gt;
   SecFilterEngine Off&lt;br /&gt;
   SecFilterScanPOST Off&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Disable mod_security for a specific directory===&lt;br /&gt;
&lt;br /&gt;
Sometimes you only want to disable mod_security for a specific directory&lt;br /&gt;
&lt;br /&gt;
Add the following to disable the wp-admin folder for wordpress&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfModule mod_security2.c&amp;gt;&lt;br /&gt;
   &amp;lt;LocationMatch /wp-admin/&amp;gt;&lt;br /&gt;
     SecRuleEngine Off&lt;br /&gt;
   &amp;lt;/LocationMatch&amp;gt;&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>