Hello,
I need to create a directive that states .htaccess files can be used only from within a directory with a particular name (such as 'secure'). I tried:
<Directory "/webroot/">
AllowOverride None
</Directory>
<DirectoryMatch "/webroot/*/secure/">
AllowOverride All
</DirectoryMatch>
But this didn't work. On closer inspection of the Apache documentation I found that you cannot use AllowOverride within <DirectoryMatch>, <Location>, and <LocationMatch> (everything except <Directory> really).
Does anyone know how I can work around this? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
I need to create a directive that states .htaccess files can be used only from within a directory with a particular name (such as 'secure'). I tried:
<Directory "/webroot/">
AllowOverride None
</Directory>
<DirectoryMatch "/webroot/*/secure/">
AllowOverride All
</DirectoryMatch>
But this didn't work. On closer inspection of the Apache documentation I found that you cannot use AllowOverride within <DirectoryMatch>, <Location>, and <LocationMatch> (everything except <Directory> really).
Does anyone know how I can work around this? C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!