Hi Igor,<br><br>Yes, but my rule is only acting as a simple *Access Control List* which expect a very special pattern to match and anything else should be discarded with an error message/page.<br><br>The given pattern is not accessed directly by users, it’s an application that send requests to that given URI-pattern and if the pattern doesn’t match (thus in my case it means it&#39;s a valid request), then the request is processed further in Passenger.<br>

<br>In my understanding if I am supposed to send the positive matching I should forward that somewhere and I will create a loop and this explains why I do the opposite here.<br><br>Gregory<br><br><br><div class="gmail_quote">

2011/2/8 Igor Sysoev <span dir="ltr">&lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">
<br>
</div>You should think not in negative way:<br>
<br>
if ($request_uri !~* &quot;^/documents/(?:[A... &quot;) {<br>
<div class="im">{<br>
   rewrite ^ <a href="http://www.google.com/" target="_blank">http://www.google.com/</a> permanent;<br>
}<br>
<br>
</div>but in positive way:<br>
<br>
location ~* &quot;^/documents/(?:[A... &quot; {<br>
    ...<br>
}<br>
<br>
location / {<br>
<div class="im">   rewrite ^ <a href="http://www.google.com/" target="_blank">http://www.google.com/</a> permanent;<br>
}<br>
<br>
</div><font color="#888888">--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>