<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">
      <title>Konsole output</title>
      <div>
        <span style="font-family:monospace"><span
            style="color:#000000;background-color:#ffffff;"> Спасибо за
            ответ.<br>
            В location, в принципе ничего военного:<br>
            <br>
                   location / {
          </span><br>
                         proxy_pass <a class="moz-txt-link-freetext" href="http://backends">http://backends</a>;
          <br>
          <br>
                         limit_conn lz_global    32;
          <br>
                         limit_req zone=lz_req_global burst=10;
          <br>
                         limit_req zone=auth burst=5 nodelay;
          <br>
          <br>
                         <span
            style="font-weight:bold;color:#5454ff;background-color:#ffffff;">#
            for checking auth page connection:</span><span
            style="color:#000000;background-color:#ffffff;">
          </span><br>
                         if ($request_uri ~* ^/auth/login$)
          <br>
                                 {
          <br>
                                         access_log
                   /var/log/nginx/server-auth.log;
          <br>
                                 } <br>
          <br>
        </span>
        <pre wrap="">               if ($http_referer ~* "111\.111\.111\.111") {
                               access_log         /var/log/nginx/111.111.111.111_referer.log;
                               return 444;
<span style="font-family:monospace">                        } </span>
</pre>
        <span style="font-family:monospace"><br>
          <br>
                         <span
            style="font-weight:bold;color:#5454ff;background-color:#ffffff;">#
            return 444 to fake googlebot</span><span
            style="color:#000000;background-color:#ffffff;">
          </span><br>
                         if ($http_user_agent ~* <span
            style="color:#b21818;background-color:#ffffff;">'googlebot$'</span><span
            style="color:#000000;background-color:#ffffff;">)
          </span><br>
                                 {
          <br>
                                         access_log
          /var/log/nginx/fake-google-bot.ua.log;
          <br>
                                         return 444;
          <br>
                                 }<br>
        </span></div>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      }<br>
      <br>
      <br>
      <br>
      <br>
      On 07/23/2015 01:42 PM, Ekaterina Kukushkina wrote:<br>
    </div>
    <blockquote
      cite="mid:20150723104249.GA5689@Ekaterinas-MacBook-Pro.local"
      type="cite">
      <pre wrap="">Добрый день.

Конструкция вполне себе работоспособная. Показывайте больше деталей. 
Например, конфигурацию всего локейшена, в котором этот if фигурирует.

On Thu, Jul 23, 2015 at 11:55:53AM +0300, Nick wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Добрый день.

Нужно вернуть 444 по рефереру

Вот такая конструкция не работает:
--
Konsole output
               if ($http_referer ~* "111\.111\.111\.111") {
                               access_log
         /var/log/nginx/111.111.111.111_referer.log;
                               return 444;
               }
--
Спасибо.
</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">_______________________________________________
nginx-ru mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://mailman.nginx.org/mailman/listinfo/nginx-ru">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a>
</pre>
      </blockquote>
      <pre wrap="">

</pre>
    </blockquote>
    <br>
  </body>
</html>