<div dir="ltr">Приведенная выше схема не работает</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-01 10:59 GMT+03:00 Иван Мишин <span dir="ltr"><<a href="mailto:simplebox66@gmail.com" target="_blank">simplebox66@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">ВОт так?</div><div class="gmail_extra">location / {</div><div class="gmail_extra">                        if ($query_string ~ param1=a ) {</div><div class="gmail_extra">                                error_page 418 = @restricted;</div><div class="gmail_extra">                        }</div><div class="gmail_extra">                        proxy_pass <a href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a>;</div><div class="gmail_extra">                }</div><div class="gmail_extra"><br></div><div class="gmail_extra">                location @restricted {</div><div class="gmail_extra">                        internal;</div><div class="gmail_extra">                        auth_basic "Restricted";</div><div class="gmail_extra">                        auth_basic_user_file include/passwd/testpass.txt;</div><div class="gmail_extra">                        proxy_pass <a href="http://127.0.0.1:8080" target="_blank">http://127.0.0.1:8080</a>;</div><div class="gmail_extra">                }</div><div><br></div></div></div>
</blockquote></div><br></div>