title: Can I put mod_rewrite statements in my apache.conf file?
body: <p>Right now all my mod_rewrite related statements are in my VHost configuration files. I would like to move the common ones into my apache configuration file. However, when I move either of these two statements</p>
  
  <pre><code>RewriteEngine on
  RewriteMap domainMapper prg:foo/bar.php
  </code></pre>
  
  <p>The website breaks. A look at the <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritemap" rel="nofollow">mod_rewrite documents</a> indicates that the RewriteMap directive should work in both the <code>server config</code> and the <code>virtual host</code> context. However, this is not the case. Can someone clarify whether I am doing something wrong, or failing to do something necessary?</p>