title: How to include same modsecurity rules in multiple virtual hosts without changing the id for each rule and each host?
body: <p>I have multiple virtual hosts with <a href="https://www.modsecurity.org/" rel="nofollow">Modsecurity</a> enabled. I want to assign multiple <a href="https://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project" rel="nofollow">OWASP rules</a> (from the base_rules folder) like SQL injection to <strong>multiple</strong> virtual hosts.
  I have included them in my virtual host files, but I get the following message when I reload apache:</p>
  
  <pre><code>ModSecurity: Found another rule with the same id Action '-t' failed. 
  
  The Apache error log may have more information.
  </code></pre>
  
  <p>How can I include these base rules in multiple virtual hosts without changing the id for each rule? The server is meant to proxy to a lot of virtual hosts, so changing the ID for each rule and each host would be a lot of work to do manually.</p>