Disable PHP in specific directories

Rob Schultz rschultz7 at gmail.com
Thu Jun 10 21:36:56 MSD 2010

On Jun 10, 2010, at 7:23 PM, Boris Dolgov wrote:

> Hello!
> On Thu, Jun 10, 2010 at 8:44 PM, Rob Schultz <rschultz7 at gmail.com> wrote:
>> Just for clarification it doesn't matter logically where he puts the
>> location as long they are in the same server section. NginX uses the most
>> specific match first no the first match found in the file.
>> http://wiki.nginx.org/NginxHttpCoreModule#location
> No. For locations, defined with regular expressions, the first match
> is being used. This is written in you link:
>> 3. Regular expressions, in the order they are defined in the configuration file.
>> 4. If #3 yielded a match, that result is used.
Thanks for correcting me. LOL i always thought more exact match even with regular expressions matched first.

> -- 
> Boris Dolgov.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20100610/9870dc57/attachment-0001.html>

More information about the nginx mailing list