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 28, 2007 2:02:30 am
List:ru.sysoev.nginx

On Wednesday 28 February 2007, Andy Triboletti wrote:

What if I want to redirect when the referer is bob.com with args of 12345 and also redirect if referer is andy.com with args of 987? I tried having two location ~* things {} blocks ,but it is not processing both.

if ($http_referer ~ "^.*bob\.com.*$") { rewrite "^.*12345.*$" /disabled break; }

if ($http_referer ~ "^.*andy\.com.*$") { rewrite "^.*987.*$" /disabled break; }