Welcome! Log In Create A New Profile

Advanced

Re: PHP not working in regex locations (?)

April 21, 2009 04:31PM
On Tue, Apr 21, 2009 at 02:49:33PM -0400, Jonathan Vanasco wrote:

> This command serves the right directories, and pipes them through php:
>
> location /careers) {
> root /home/artwelove/_current/web/www.artwelove.com-news/news;
> include /usr/local/nginx/_macros/php.conf;
> index index.php index.html;
> }
>
>
> This command serves the right directories, but does not pipe them
> through php:
>
> location ~ /careers {
> root /home/artwelove/_current/web/www.artwelove.com-news/news;
> include /usr/local/nginx/_macros/php.conf;
> index index.php index.html;
> }
>
>
> I can't figure this one out... This is a simplified example, but just
> changing the location to a regex kills the php ability
>
> Anyone have a clue ?
>
> Oh, and this is on nginx 0.6.34:

Build nginx with debug log, then grep the lines:

test location: "...."
test location: "...."
test location: "...."
test location: "...."
using configuration "....."


--
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: 267
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