title: Apache ProxyPass - Regex to Exclude Files
body: <p>I'm trying to exclude all files starting with <strong>"dgg-"</strong> and ending in <strong>".xml"</strong>, example: <strong>dgg-file-1.xml</strong> from using the apache proxy.</p>
  
  <p><strong>This works:</strong></p>
  
  <pre><code>ProxyPass /myfile.xml ! # single file
  ProxyPass /directory ! # all files inside dir
  </code></pre>
  
  <p><strong>This doesn't work:</strong></p>
  
  <p><code>ProxyPass /dgg-(.*)\.xml !</code></p>
  
  <p><strong>How can I achieve this ?</strong> </p>
  
  <p>ps- I'm using this code inside the <code>httpd.conf-&gt;virtualhost</code> <strong>not</strong> <code>.htaccess</code>.</p>