Welcome! Log In Create A New Profile

Advanced

Re: PHP not working in regex locations (?)

Jonathan Vanasco
April 22, 2009 10:39AM
On Apr 22, 2009, at 2:42 AM, Igor Sysoev wrote:
> location ~ "^/(rsvp|pages|careers)/" ?

in it's entirety:

location ~ ^/(rsvp|pages|careers)/ {
if ( -f /home/artwelove/_current/web/www.artwelove.com-
downtime/-news ) {
return 503;
}
root /home/artwelove/_current/web/www.artwelove.com-news/news;
include /usr/local/nginx/_macros/php.conf;
index index.php index.html;
}

the if block was a trick i learned off this list to handle downtime
with semaphores

this block works perfectly as an exact match... and these locations
are just shotcuts to remove a few nested dirs off of a /news main
location. reaching this through /news/careers works as intended ;
rewriting this block to be location /careers works as intended.
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: 242
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