drop connection

2018-12-20 Thread inkognito0609
Доброго времени суток! Кейс такой, на NS прописан 'wildcard *.exemple.com', директивой server_name разгуливаю на бэкенды. При наборе разной белиберды - 'asdfgasdg.exemple.com' отправляет на первый server_name. Сделал заглушку типа 'server_name _;' которая кидает на 404. Как совсем дропать имена

Unit 1.7 release

2018-12-20 Thread Valentin V. Bartenev
Hi, I'm glad to announce a new release of NGINX Unit. This is a bugfix release with a primary focus on the stabilization of the Node.js module. We have made great progress with it, and now Node.js support is in much better shape than before. Changes with Unit 1.7

[nginx-announce] unit-1.7

2018-12-20 Thread Valentin V. Bartenev
Hi, I'm glad to announce a new release of NGINX Unit. This is a bugfix release with a primary focus on the stabilization of the Node.js module. We have made great progress with it, and now Node.js support is in much better shape than before. Changes with Unit 1.7

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread Maxim Dounin
Hello! On Thu, Dec 20, 2018 at 11:21:12AM -0500, darksmoke wrote: > А как можно сопоставить запрос от клиента с записью в error логе. > В access логе все четко и ясно. Там есть время, есть реквест ИД. А в эррор > логе ничего такого нет. > А мне хотелось бы нати этот запрос который не отработал в

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread darksmoke
А как можно сопоставить запрос от клиента с записью в error логе. В access логе все четко и ясно. Там есть время, есть реквест ИД. А в эррор логе ничего такого нет. А мне хотелось бы нати этот запрос который не отработал в отведенное ему время и провести над ним работы. Posted at Nginx Forum:

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread Maxim Dounin
Hello! On Thu, Dec 20, 2018 at 09:02:31AM -0500, darksmoke wrote: > А как залогировать upstream_header_time и upstream_response_time если это > error лог. Я не нашел как изменить формат error лога. :( Переменные $upstream_header_time и $upstream_response_time можно залоггировать в access log.

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread darksmoke
А как залогировать upstream_header_time и upstream_response_time если это error лог. Я не нашел как изменить формат error лога. :( Posted at Nginx Forum: https://forum.nginx.org/read.php?21,282422,282427#msg-282427 ___ nginx-ru mailing list

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread darksmoke
upstream site { server xx.xx.xx.185:33084 max_fails=20 fail_timeout=1; server xx.xx.xx.96:33084 max_fails=20 fail_timeout=1; server xx.xx.xx.94:7070 max_fails=20 fail_timeout=1; serverxx.xx.xx.167:7070 max_fails=20 fail_timeout=1; } server { server_name site.loc;

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread Maxim Dounin
Hello! On Thu, Dec 20, 2018 at 08:18:40AM -0500, darksmoke wrote: > Добрый день > Время от времени в логах Nginx наблюдаю такие записи > > 2018/12/20 14:53:05 [error] 67589#0: *26303544 upstream timed out (60: > Operation timed out) while reading response header from upstream, client: >

Re: Need logic to not check for bad user agent if xml file

2018-12-20 Thread Maxim Dounin
Hello! On Thu, Dec 20, 2018 at 01:42:49AM -0800, li...@lazygranch.com wrote: > I have a map to check for bad user agents called badagent. I want to > set up a RSS feed. The feedreaders can have funny agents, so I need to > omit the bad agent check if the file is any xml type. > > This is

Re: upstream timed out (60: Operation timed out)

2018-12-20 Thread Сергей Олегович
https://nginx.org/ru/docs/http/ngx_http_proxy_module.html#proxy_read_timeout С этим всё впорядке? чт, 20 дек. 2018 г. в 16:18, darksmoke : > Добрый день > Время от времени в логах Nginx наблюдаю такие записи > > 2018/12/20 14:53:05 [error] 67589#0: *26303544 upstream timed out (60: > Operation

upstream timed out (60: Operation timed out)

2018-12-20 Thread darksmoke
Добрый день Время от времени в логах Nginx наблюдаю такие записи 2018/12/20 14:53:05 [error] 67589#0: *26303544 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 10.1.110.74, server: site.loc, request: "POST /transactions/credit/ HTTP/1.1",

Need logic to not check for bad user agent if xml file

2018-12-20 Thread li...@lazygranch.com
I have a map to check for bad user agents called badagent. I want to set up a RSS feed. The feedreaders can have funny agents, so I need to omit the bad agent check if the file is any xml type. This is rejected. if (($request_uri != [*.xml]) && ($badagent)) {return 444; } Suggestions?