<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">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">http://127.0.0.1:8080</a>;</div><div class="gmail_extra">                }</div><div><br></div></div></div>