Problems with fastcgi php migration

Igor Sysoev is at rambler-co.ru
Thu Mar 13 00:26:47 MSK 2008


On Wed, Mar 12, 2008 at 05:23:52PM -0400, Ian M. Evans wrote:

> Still trying to work out why, in my last mail (after I fixed my 
> cut'n'paste error), the path_info wasn't getting populated with the 
> stuff after the / but instead the script.
> 
> Began trying to finally understand how regex works. So a question:
> 
> In your location:
> 
> if ($uri ~ ^(/[^/]+)(/.*)) {
> set  $script_name  $uri;
> set  $path_info    $1;
> }
> 
> If I'm understanding the tutorial I'm reading, don't the $NUM variables 
> get populated by the parantheses? So wouldn't the set $path_info come 
> from $2 since you have two sets of ()?

This is my mistype, it should be:

  set  $script_name  $1;
  set  $path_info    $2;


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





More information about the nginx mailing list