title: How can I set up multiple virtual hosts in httpd.conf and have each use a different .htaccess file?
body: <p>I have many virtual hosts setup in my httpd.conf all set up like this:</p>
  
  <pre><code>NameVirtualHost 127.0.0.1
  &lt;VirtualHost 127.0.0.1&gt;
      ServerName localhost
      DocumentRoot "c:/wamp/wwwWP/"
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.1&gt;
      ServerName testing.local
      DocumentRoot "c:/wamp/wwwtesting/"
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost 127.0.0.1&gt;
      ServerName images.local
      DocumentRoot "c:/wamp/wwwimages/"
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have commented out the #DocumentRoot line from the file. Everything works fine in my setup, but I can't figure out how to use a .htaccess file on more than one of my virtual hosts at the same time. I seem to have to change this line to the site I'm currently working on each time:</p>
  
  <pre><code>&lt;Directory "C:/wamp/wwwimages/"&gt;
  </code></pre>
  
  <p>It's getting a little obnoxious. How can I set up my apache to use a .htaccess file for any virtual host that has one?</p>
  
  <p>Thanks!</p>