title: Selectively configuring Apache 2 mod_headers for Google Chrome Frame
body: <p>I am currently evaluating Google Chrome Frame and so far i'm happy with it, but what i'd like to do is selectively use it for certain sections of my website.</p>
  
  <p>Some sections require ActiveX so need to be viewed in native IE, whereas others benefit greatly, and may end up requiring, Chrome Frame.</p>
  
  <p>I've currently got the following configured in my apache httpd.conf file -</p>
  
  <pre><code>&lt;IfModule mod_setenvif.c&gt;
      &lt;IfModule mod_headers.c&gt;
          BrowserMatch chromeframe gcf
          Header append X-UA-Compatible "chrome=1" env=gcf
      &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>This causes anything coming in via Apache to get the chrome frame stuff added to the headers.</p>
  
  <p>What I need is to make this only happen when a user visits particular URL's / particular pages, which i'm currently controlling via RewriteRules.</p>
  
  <p>Could anybody explain how I would go about this, as my understanding of the Apache config files isn't brilliant.</p>
  
  <p>Thanks.</p>