title: htaccess with virtualhost not working
body: <p>I have a local dev Debx64 machine with a number of virtualhosts configured.
  the primary URL is set as   </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerAdmin webmaster@blah.com
  ServerName blah.com 
  ServerAlias blah.com 
  DocumentRoot /home/blah/v1.blah.com 
  &lt;Directory /home/blah/v1.blah.com/&gt;
              AllowOverride All
              Order allow,deny
              allow from all
  &lt;/Directory&gt;
  AccessFileName .htaccess  
  ErrorLog /home/blah/blah_logs/v1.blah.com.in-error_log
  CustomLog /home/blah/blah_logs/v1.blah.com.in-access_log common 
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>and that redirects to the primary operating VH</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
   ServerAdmin webmaster@blah.com
   ServerName v1.blah.com 
   ServerAlias v1.blah.com 
   DocumentRoot /home/blah/v1.blah.com 
  &lt;Directory /home/blah/v1.blah.com/&gt;
              AllowOverride All
              Order allow,deny
              allow from all
  &lt;/Directory&gt;
  AccessFileName .htaccess  
  ErrorLog /home/blah/blah_logs/v1.blah.com.in-error_log
   CustomLog /home/blah/blah_logs/v1.blah.com.in-access_log common 
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I have a .htaccess set up on v1.blah.com to parse .html as .php</p>
  
  <pre><code>Options +ExecCGI
  
  AddHandler php-fcgi .php .html 
  Action php-cgi /home/php5-fcgi
  &lt;FilesMatch "^php5?\.(ini|cgi)$"&gt;
      Order Deny,Allow
      Deny from All
      Allow from env=REDIRECT_STATUS
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>This works fine if I access the URL as v1.blah.com, however if I access it as blah.com the .htaccess is not invoked and the .html is served as normal.</p>
  
  <p>What Am I missing? is there something in php.ini that needs to be changed?</p>