8 messages in ru.sysoev.nginxRe: using two if statements together ...
FromSent OnAttachments
Andy TribolettiFeb 27, 2007 5:09 pm 
RoxisFeb 27, 2007 6:00 pm 
Andy TribolettiFeb 27, 2007 7:04 pm 
RoxisFeb 28, 2007 2:02 am 
Andy TribolettiFeb 28, 2007 1:23 pm 
RoxisFeb 28, 2007 3:16 pm 
Andy TribolettiFeb 28, 2007 9:58 pm 
Igor SysoevMar 6, 2007 1:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: using two if statements together in nginx confActions...
From:Roxis (roxi@public.gmane.org)
Date:Feb 27, 2007 6:00:16 pm
List:ru.sysoev.nginx

On Wednesday 28 February 2007, Andy Triboletti wrote:

location = /things { if ($http_referer ~* ".*bob.com.*" && $args ~* "12345") { rewrite ^/things$ /thing.disabled break;

this should work:

if ($http_referer !~* ".*bob.com.*") { break; }

if ($args ~* "12345") { rewrite ^/things$ /thing.disabled break; }