apache configuration, relax Auth restriction on 1 file?
Alex Dean
alex at crackpot.org
Thu Dec 22 10:28:13 MST 2005
On Dec 22, 2005, at 9:47 AM, Micah DesJardins wrote:
> You solved your own problem! Merry Christmas to you too.
Thanks. But... I screwed up one part.
I said this was right :
> # relaxed for 1 script
> <Files /var/www/restricted/open.php>
> Order Deny,Allow
> Allow from all
> Satisfy Any
> </Files>
But this doesn't work. It doesn't cause an error, but it also
doesn't do what you think it's going to. <Files> blocks don't care
about paths. The just look for file names. So, the thing above
would only allow access to a file literally named '/var/www/
restricted/open.php' (the slashes aren't interpreted as directory
separators).
The right way to do what I wanted is this :
<Directory /var/www/restricted>
<Files open.php>
Order Deny,Allow
Allow From all
Satisfy Any
</Files>
</Directory>
OK, that's all for now. Micah, thanks for your help. Everyone else,
thanks for letting me spam the list. :)
alex
.
More information about the PLUG-discuss
mailing list