Welcome! Log In Create A New Profile

Advanced

Re: PHP not working in regex locations (?)

Jonathan Vanasco
April 23, 2009 01:54PM
I figured out the problem, and a temporary solution

looking through my mailbox i saw this thread:

From: lists@webservice.com.uy
Subject: php and locations with regex (round 2)
Date: October 23, 2007 6:44:21 AM EDT

which was the same issue as me.

the problem is that my macro for php is the very standard block

location ~ *.php {}

which should not have been used within a static or regex location -
only in a server
but there is a behavior where it does work on static location

so i created a temporary fix: i made another macro which was just the
contents of the php block

in the 2007 thread, igor said that it would be bad to use an if ()
match on files... is this still true?

ideally i would like to do this:

location ~ /regex/ {
if ( filename *~ *.php(\?.*)? ) {
fcgi passover
}
handle static stuff here
}
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: 223
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