title: Apache - Mapping url to local path for static content
body: <p>My httpd.conf</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ...
      DocumentRoot /home/www/static
      ...
      &lt;Directory /home/www/static&gt;
      Order Allow,Deny
      Allow from all
      &lt;/Directory&gt;
  
      &lt;Location "/foo"&gt;
      SetHandler None
      &lt;/Location&gt;
  &lt;/virtualhost&gt;
  </code></pre>
  
  <p>I have a file at /home/www/static/foo/helloworld.txt. And if I go to <a href="http://localhost/foo/helloworld.txt" rel="noreferrer">http://localhost/foo/helloworld.txt</a> I will see that file. </p>
  
  <p>Now, for some irrelevant reason, I want to change the urls. The above url should return nothing, while <a href="http://localhost/bar/helloworld.txt" rel="noreferrer">http://localhost/bar/helloworld.txt</a> should return the file. And I want to achieve this, without changing anything in the directory structure. </p>
  
  <p>How is that done?</p>