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: 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 brought to you by Yet Another Related Posts Plugin.
Alias /Test /path/to/folder
<Location /Test>
#Directives
</Location>
Related posts
Leave a Reply