Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regex for allowoverride

Status
Not open for further replies.

Crundy

Programmer
Jul 20, 2001
305
GB
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 &quot;/webroot/&quot;>
AllowOverride None
</Directory>

<DirectoryMatch &quot;/webroot/*/secure/&quot;>
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!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top