Have you taken a look at How <Directory>, <Location> and <Files> sections work? It seems that there might be another directive (probably Location
) evaluated later, which overrides your Files
directive. It's hard to diagnose more without further details of your Apache configuration.