using two if statements together in nginx conf

Andy Triboletti andy.triboletti at gmail.com
Thu Mar 1 08:59:09 MSK 2007


On 2/28/07, Roxis <roxis at list.ru> wrote:
>
> next suggestion )
>
> set $preg "$http_referer#$args";
>
> if ($preg ~ ".*bob.com.*#.*12345") {
>     rewrite ^/thing.*$ /thing.disabled break;
> }
>
>
>
Thanks! This worked beautifully!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070228/bba8b33c/attachment.html>


More information about the nginx mailing list