Welcome! Log In Create A New Profile

Advanced

Location regular expression explanation

August 03, 2012 02:28AM
Hi,

I was recently reading the PHPfastcgi example at http://wiki.nginx.org/PHPFcgiExample. When it talks about the configuration to avoid the exploit on uploads folder, there is a regulare expresion saying: location ~* (^(?!(?:(?!(php|inc)).)*/blogs\.dir/).*?(php|inc)) {

I don't understand that regular expresion. Could someone explain me what ?! ?: mean or send me some link to documentation about this?? I cannot find anything after some googling.

Thanks and regards.
Subject Author Posted

Location regular expression explanation

diego_xa August 03, 2012 02:28AM

Re: Location regular expression explanation

Ruslan Ermilov August 03, 2012 03:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
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