PHP not working in regex locations (?)

Igor Sysoev is at rambler-co.ru
Wed Apr 22 10:42:15 MSD 2009


On Tue, Apr 21, 2009 at 06:38:13PM -0400, Jonathan Vanasco wrote:

> 
> On Apr 21, 2009, at 4:31 PM, Igor Sysoev wrote:
> 
> >Build nginx with debug log, then grep the lines:
> >
> >test location: "...."
> >test location: "...."
> >test location: "...."
> >test location: "...."
> >using configuration "....."
> 
> i get the text below ; it makes no sense to me while PHP gets ignored  
> from this.
> 
> 
> 2009/04/21 22:31:55 [debug] 20025#0: *48 using configuration "^/(rsvp| 
> pages|careers)/"

nginx matches

     location ~ "^/(rsvp|pages|careers)/" {

> 2009/04/21 22:31:55 [debug] 20025#0: *48 http script value: "/home/ 
> artwelove/_current/web/www.artwelove.com-downtime/-news"
> 2009/04/21 22:31:55 [debug] 20025#0: *48 http script file op  
> 0000000000000000 "/home/artwelove/_current/web/www.artwelove.com- 
> downtime/-news"

     here is testing existence of file
         /home/artwelove/_current/web/www.artwelove.com-downtime/-news"

> 2009/04/21 22:31:55 [debug] 20025#0: *48 add cleanup: 00000000006A7DA8
> 2009/04/21 22:31:55 [debug] 20025#0: *48 http script file op false
> 2009/04/21 22:31:55 [debug] 20025#0: *48 http script if
> 2009/04/21 22:31:55 [debug] 20025#0: *48 http script if: false
> 2009/04/21 22:31:55 [debug] 20025#0: *48 post rewrite phase: 4

     it does not exists, so the static file is handled:

> 2009/04/21 22:31:55 [debug] 20025#0: *48 http filename: "/home/ 
> artwelove/_current/web/www.artwelove.com-news/news/careers/intern- 
> technology-developer/index.php"

Could you show

location ~ "^/(rsvp|pages|careers)/" ?


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





More information about the nginx mailing list