title: Apache location match wildcard URL
body: <p>My VHOST currently looks like:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
       DocumentRoot /data/sites/example_deploy
       ServerName deploy.example.co.uk
       &lt;Directory "/data/sites/example_deploy"&gt;
          Options +SymLinksIfOwnerMatch
          AllowOverride All
          Order allow,deny
          Allow from all
  
          AuthUserFile /data/confs/svn/htpasswd
          AuthName "Example deployment example testing"
          AuthType Basic
          Require valid-user
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>We have a URL /api that takes different parameters. Examples are:</p>
  
  <ul>
  <li>/api/testing-bot-response/1234842823</li>
  <li>/api/sql-deploy-response/stage/172bUd7s</li>
  </ul>
  
  <p>What we are trying to achieve is that /api/* would not require a valid user and the HTaccess is satisfied before the request is made. The URL may be made up of more than 2 parameters.</p>
  
  <p>I've researched the subject and have worked out that I need to use LocationMatch and pass the Satisfy parameter, however I am not sure how the regular expression should be formed.</p>