title: Apache ProxyPass for URLS inconsistently failing
body: <p>This one's driving me nuts.  I have an active and in-use Apache proxy server serving content up on EC2.  It's working great, and has a variety of vhosts that are configured like this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName m.FOO.com
      ServerAlias customer.FOO.com
  
      ProxyPreserveHost On
      ProxyPass / ajp://10.211.42.48:8009/
      ProxyPassReverse / ajp://10.211.42.48:8009/
  
      &lt;Proxy ajp://10.211.42.48:8009/*&gt;
            Order allow,deny
            Allow from all
      &lt;/Proxy&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>These all work great, and I'm having no problems.  Now what I'd like to do is move it so instead of a single vhost for each app, I want to have a sub-url on the main site that proxies back to the appserver.  So instead of a customer having 'customer.FOO.com', they'll have 'FOO.com/customer/'</p>
  
  <p>Great, sounds easy, right?  Yeah, not so much.  I edit the vhost entry for 'root' of the server (currently showing the landing page), and add the proxy entries to directories within that.  That should do it,right?  Yeah, it ain't:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName web01.aws.FOO.com
      DocumentRoot /var/www/html
      ErrorLog logs/www.FOO.com-error_log
      CustomLog logs/www.FOO.com-access_log common
  
      &lt;Location /a&gt;
              ProxyPass ajp://10.211.42.48:8009
              ProxyPassReverse ajp://10.211.42.48:8009
      &lt;/Location&gt; 
  
      &lt;Location /t&gt;
              ProxyPass http://adm01
              ProxyPassReverse http://adm01
      &lt;/Location&gt;
  
      &lt;Proxy ajp://10.211.42.48:8009/*&gt;
            Order allow,deny
            Allow from all
      &lt;/Proxy&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>If i hit <a href="http://www.FOO.com/t/" rel="nofollow">http://www.FOO.com/t/</a> - I get the internal webserver - it proxies forward correctly, and all is well.  If I hit <a href="http://www.FOO.com/a/" rel="nofollow">http://www.FOO.com/a/</a> I get a 404 error.  The access log even shows a 404 error.</p>
  
  <p>Note that the ProxyPass AJP entries are identical to what's in the other vhost entry.  So why does it work on the root on the other vhost entry, and not as a subdir here on the main vhost?</p>
  
  <p>Halp!</p>