I've inherited a poorly designed web app, which has a certain file that needs to be publicly accessible, but that file is inside a directory which should not.
In other words, I need a way to block all files and sub-directories within a directory, but over-ride it for a single file.
I'm trying this:
# No one needs to access this directly
Order Deny,allow
Deny from all
# But this file is OK:
Allow from all
But it's not working- it just blocks everything including the file I want to allow. Any suggestions?
Answer
There is an answer on StackOverflow that should answer this question, I think there is a missing Order
in the nested Files
directive?
No comments:
Post a Comment