PHP not working in regex locations (?)

Igor Sysoev is at rambler-co.ru
Wed Apr 22 00:31:26 MSD 2009


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/





More information about the nginx mailing list