My httpd.conf
<VirtualHost *:80>
...
DocumentRoot /home/www/static
...
<Directory /home/www/static>
Order Allow,Deny
Allow from all
</Directory>
<Location "/foo">
SetHandler None
</Location>
</virtualhost>
I have a file at /home/www/static/foo/helloworld.txt. And if I go to http://localhost/foo/helloworld.txt I will see that file.
Now, for some irrelevant reason, I want to change the urls. The above url should return nothing, while http://localhost/bar/helloworld.txt should return the file. And I want to achieve this, without changing anything in the directory structure.
How is that done?