Re: apache configuration, relax Auth restriction on 1 file?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alex Dean
Date:  
To: Main PLUG discussion list
Subject: Re: apache configuration, relax Auth restriction on 1 file?
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
.
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss