Welcome! Log In Create A New Profile

Advanced

Re: PHP not working in regex locations (?)

April 22, 2009 02:42AM
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/
Subject Author Posted

PHP not working in regex locations (?)

Jonathan Vanasco April 21, 2009 02:49PM

Re: PHP not working in regex locations (?)

Igor Sysoev April 21, 2009 04:31PM

Re: PHP not working in regex locations (?)

Jonathan Vanasco April 21, 2009 06:38PM

Re: PHP not working in regex locations (?)

mike April 21, 2009 06:59PM

Re: PHP not working in regex locations (?)

Jonathan Vanasco April 21, 2009 08:49PM

Re: PHP not working in regex locations (?)

mike April 22, 2009 01:50AM

Re: PHP not working in regex locations (?)

Igor Sysoev April 22, 2009 02:42AM

Re: PHP not working in regex locations (?)

Jonathan Vanasco April 22, 2009 10:39AM

Re: PHP not working in regex locations (?)

Jonathan Vanasco April 22, 2009 03:16PM

Re: PHP not working in regex locations (?)

Jonathan Vanasco April 23, 2009 01:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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