Welcome! Log In Create A New Profile

Advanced

Re: Disable PHP in specific directories

Rob Schultz
June 10, 2010 02:06PM
On Jun 10, 2010, at 7:44 PM, Igor Sysoev wrote:

> Could you define algorithm to find the most specific match for regexes, for
> example, what is more specific for "/dir/page1.php" - "^/dir/", "\.php$",
> "page\d+" ?
>
No, but then again Igor you are way smarter then i am. NginX is a fantastic piece of work. Like i said earlier i just skipped that "rule" and more specific matches stuck in my head. how i thought about it

location ~ "^/upload/\.php$" would be more exact then
location ~ "\.php$" since more parts are being explicitly matched.

> --
> Igor Sysoev
> http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable PHP in specific directories

mindfrost82 June 10, 2010 11:59AM

Re: Disable PHP in specific directories

Boris Dolgov June 10, 2010 12:36PM

Re: Disable PHP in specific directories

Rob Schultz June 10, 2010 12:48PM

Re: Disable PHP in specific directories

Boris Dolgov June 10, 2010 01:32PM

Re: Disable PHP in specific directories

Rob Schultz June 10, 2010 01:42PM

Re: Disable PHP in specific directories

Igor Sysoev June 10, 2010 01:50PM

Re: Disable PHP in specific directories

Rob Schultz June 10, 2010 02:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 222
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready