The difference a Location can make

Posted: May 8th, 2003 | Author: telcor | Filed under: Linux |

Yesterday I learned something, something very important: the difference between Directory and Location when configuring Apache. For alomst a year, a test domain on my development box was configured to resemble the actually domain, except for one item, it would not obey directives in .htaccess files. After many frustrated hours, I used a spare moment yesterday to investigate why. The reason is quite simple. My test box has the domain set as follows:

Alias /Test /path/to/folder
<Location /Test>
#Directives
</Location>

The Location directive cares only about the URL, it pays no attention to the file system. Anything pertaining to the filesystem is ignored. Changing the Location directive to Directory fixed my problem.

Related posts

  1. Multiple email domains for a home user - Part 2 Sometime ago, I posted this article about having/managing email accounts...
  2. The Virtues of Apt-Move If you want to create a partial Debian mirror, apt-move...
  3. Development: Automated Testing Below is a copy-n-paste of a message to the mailing...
  4. why -i is good for you Sunday I dorked my website configuration. While in the process...
  5. Release of Slackware 9.0 Last week the Slackware team released version 9 of their...

Related posts brought to you by Yet Another Related Posts Plugin.



Leave a Reply