Welcome! Log In Create A New Profile

Advanced

Re: error_log levels

Maxim Dounin
April 10, 2010 06:24AM
Hello!

On Fri, Apr 09, 2010 at 11:28:29PM -0400, flash wrote:

> So I guess I need to start with my rewrites...here they are
>
> rewrite ^/([0-9]+)/([_0-9a-zA-Z-]+)/?$ $theme/listing.php?mls=$1 last;
> rewrite ^/([0-9]+)/([_0-9a-zA-Z-]+)+.html?$ $theme/listing.php?mls=$1 last;

This one will backtrack in an exponential way due to "(...+)+"
construct. On long enough URL it will cause problems.

Here is pcretest session which demonstrates the problem:

$ pcretest
PCRE version 7.9 2009-04-11

re> !^/([0-9]+)/([_0-9a-zA-Z-]+)+.html?$!
data> /1/1.html
0: /1/1.html
1: 1
2: 1
data> /1/1.htmlx
No match
data> /1/111111111111111111111111111111111111111111111111111111111.htmlx
Error -8

[...]

> These rewrites are working like I want them too but are they
> causing my prce errors?

Yes they are.

Maxim Dounin

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

error_log levels

flash April 08, 2010 10:18PM

Re: error_log levels

Maxim Dounin April 09, 2010 05:34AM

Re: error_log levels

flash April 09, 2010 11:28PM

Re: error_log levels

Maxim Dounin April 10, 2010 06:24AM

Re: error_log levels

flash April 10, 2010 10:21PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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