Re: proxy_ignore_client_abort not working on linux

2016-12-01 Thread Maxim Dounin
Hello! On Wed, Nov 30, 2016 at 06:31:51PM -0500, badtzhou wrote: > I can't get proxy_ignore_client_abort to work correctly on linux. The > default option is off. But when I proxy a large cacheable file, nginx > doesn't close the backend connection right away when client abort the > request. The

Re: How to config the path for the dynamic module of nginx to access?

2016-12-01 Thread Maxim Dounin
Hello! On Wed, Nov 30, 2016 at 12:15:46PM -0800, Ya-wen Lin wrote: > Hi, > > I've read the related documents and tried googling but the results are all > about how to assign the path to the module's implementation c code for > nginx to compile a module. > > My module will read/write files upon

Re: $connections_waiting ever increasing

2016-12-01 Thread nemster
TLS SNI support enabled configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/bin/nginx --pid-path=/run/nginx.pid --lock-path=/run/lock/nginx.lock --user=http --group=http --http-log-path=/var/log/nginx/access.log --error-log-path=stderr

Re: How to config the path for the dynamic module of nginx to access?

2016-12-01 Thread Ya-wen Lin
Thanks for your reply. I've already have load_module /usr/local/etc/nginx/ngx_http_my_module.so; in nginx.conf But that "ngx_http_my_module.so" will write out some files, I'd like to config the path for those generated files. Currently the path seems to be the working folder I start nginx service.

Re: How to config the path for the dynamic module of nginx to access?

2016-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2016 at 10:08:55AM -0800, Ya-wen Lin wrote: > Thanks for your reply. > I've already have > load_module /usr/local/etc/nginx/ngx_http_my_module.so; > in nginx.conf > But that "ngx_http_my_module.so" will write out some files, I'd like to > config the path for those

Re: $connections_waiting ever increasing

2016-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2016 at 11:44:44AM -0500, nemster wrote: > hi all! > i see ever increasing numbers for $connections_waiting in the status > plugin. > > nginx06% curl 'localhost/status' > Active connections: 480810 > server accepts handled requests > 53456157 53456157 92142205 > Reading:

Re: Nginx headers to be set at the time of request processing

2016-12-01 Thread CeeGeeDev
Francis Daly Wrote: --- > On Mon, Nov 28, 2016 at 06:56:29PM -0500, CeeGeeDev wrote: > > Hi there, > > Thanks for expanding on what you are doing. > > I confess that I am still not sure what it is; but that's ok -- I > don't need to

$connections_waiting ever increasing

2016-12-01 Thread nemster
hi all! i see ever increasing numbers for $connections_waiting in the status plugin. nginx06% curl 'localhost/status' Active connections: 480810 server accepts handled requests 53456157 53456157 92142205 Reading: 5 Writing: 8435 Waiting: 471206 nginx06% sudo netstat -alpn | grep "^tcp" | wc -l

Re: $connections_waiting ever increasing

2016-12-01 Thread nemster
i think i solved it, it was due to processes crashing. i ran on an non optimized kernel on ec2. booting with the appropriate kernel seems to have solved it Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271269,271283#msg-271283 ___ nginx

Re: SNI and certs.

2016-12-01 Thread Jonathan Vanasco
On Nov 30, 2016, at 5:09 PM, steve wrote: > Well, no as I've fixed this. However, if you have a probe for site x on > https: and it doesn't exist, then the default https site for that IP address > will be returned. Depending on configuration, it may still be attributed to > the original

Re: $connections_waiting ever increasing

2016-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2016 at 12:48:32PM -0500, nemster wrote: > TLS SNI support enabled > configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf > --sbin-path=/usr/bin/nginx --pid-path=/run/nginx.pid > --lock-path=/run/lock/nginx.lock --user=http --group=http >

Re: Drupal 7, nginx with ModSecurity - How to resolve that 404 error page please?

2016-12-01 Thread Andrei Belov
Hi Matej, > On 29 Nov 2016, at 11:08, Matej Zuzčák wrote: > > Hello all, > > I have installed Drupal 7 on latest version of Nginx web server which > was compiled with support of ModSecurity module. I have activated core > OWASP rule set. But when I active ModSecurity in my

Re: Drupal 7, nginx with ModSecurity - How to resolve that 404 error page please?

2016-12-01 Thread Matej Zuzčák
Hello Andrei, thank you for your reply. I found that it is know bug if ModSecurity works in reverse proxy mode. So I will try use special nginx connector module as you say. Best Regrads Matej Zuzcak Dňa 1.12.2016 o 10:13 Andrei Belov napísal(a): > Hi Matej, > >> On 29 Nov 2016, at 11:08, Matej

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Maxim Dounin
Hello! On Thu, Dec 01, 2016 at 01:20:43AM -0800, Alexey Ivanov wrote: > Why not just use `flock(2)` there? It won't work if the socket is used by a different server. -- Maxim Dounin http://nginx.org/ ___ nginx-devel mailing list

Re: nginx performance problem on linux

2016-12-01 Thread Pavel Mihaduk
binmR6sk73Mvd.bin Description: PGP/MIME Versions Identification encrypted.asc Description: OpenPGP encrypted message ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

[njs] Using short string values where they are enough.

2016-12-01 Thread Igor Sysoev
details: http://hg.nginx.org/njs/rev/f8f20b27724e branches: changeset: 270:f8f20b27724e user: Igor Sysoev date: Thu Dec 01 19:45:19 2016 +0300 description: Using short string values where they are enough. diffstat: njs/njs_date.c | 28

Re: nginx performance problem on linux

2016-12-01 Thread Илья Шипицин
2 декабря 2016 г., 0:32 пользователь atway написал: > В идеальном мире идеальные программисты написали идеальную ось для > идеальных > пользователей. > Нам же остаётся поддерживать своих неидеальных на их неидеальном пути. > если внедрить своим пользователям

Re: nginx performance problem on linux

2016-12-01 Thread atway
В идеальном мире идеальные программисты написали идеальную ось для идеальных пользователей. Нам же остаётся поддерживать своих неидеальных на их неидеальном пути. Мне нравится опенвз и его возможности, и в будущем планирую переходить на Virtuozzo 7. Их команда внесла много кода в реализацию

Скрыть расширение .php из url

2016-12-01 Thread gif
Подскажите пожалуйста, возможно ли с nginx скрыть в урл расширение файла .php ? Так, чтобы вместо site.com/code.php?v=1 было просто site.com/code?v=1 P.S. Нужно ли переименовывать файл "code.php" в "code" и пытаться править конфиг nginx чтобы его исполнить как php или оставлять файл "code.php",

WebSocket и AJAX на одном location

2016-12-01 Thread jtiq
Здравствуйте, интересует вопрос: можно ли сделать на одном location (например: location = /test), чтобы принимало и WebSocket и AJAX, но на разные proxy_pass? и каким образом, если возможно? Posted at Nginx Forum: https://forum.nginx.org/read.php?21,271287,271287#msg-271287

Re: nginx performance problem on linux

2016-12-01 Thread Vadim A. Misbakh-Soloviov
В письме от среда, 30 ноября 2016 г. 17:21:39 +07 пользователь atway написал: > Это баг ядра. Пришлось откатиться до версии vzkernel 2.6.32-042stab116.2 > https://bugs.openvz.org/browse/OVZ-6836 На самом деле, не ядра, а OpenVZ. Давно бы уже вмерджили своё барахло в апстрим и не выпендривались,

[nginx] Events: improved error event handling for UDP sockets.

2016-12-01 Thread Dmitry Volyntsev
details: http://hg.nginx.org/nginx/rev/75dbab4ea930 branches: changeset: 6806:75dbab4ea930 user: Dmitry Volyntsev date: Mon Nov 21 16:03:42 2016 +0300 description: Events: improved error event handling for UDP sockets. Normally, the epoll module calls the read and

Re: nginx performance problem on linux

2016-12-01 Thread Evgeniy Berdnikov
On Thu, Dec 01, 2016 at 07:06:50PM +0700, Vadim A. Misbakh-Soloviov wrote: > В письме от среда, 30 ноября 2016 г. 17:21:39 +07 пользователь atway написал: > > Это баг ядра. Пришлось откатиться до версии vzkernel 2.6.32-042stab116.2 > > https://bugs.openvz.org/browse/OVZ-6836 > > На самом деле, не

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Datong Sun via nginx-devel
Hi Maxim, Thanks for the explanation. Regarding a), what about checking and making sure the type of file is actually a socket before removing? Obviously it does not prevent NGINX from deleting sockets created by other processes but it's a much smaller issue compared to deleting arbitrary file.

Re: Why not remove UNIX domain socket before bind

2016-12-01 Thread Alexey Ivanov
Why not just use `flock(2)` there? > On Nov 30, 2016, at 6:57 AM, Maxim Dounin wrote: > > Hello! > > On Tue, Nov 29, 2016 at 01:30:25PM -0800, Shuxin Yang wrote: > >> Is there any reason not to delete UNIX domain socket before bind? > > To name a few, deleting a

Re: nginx performance problem on linux

2016-12-01 Thread Vadim A. Misbakh-Soloviov
Простите, а Вы для кого *зашифровали* сообщение? :) Если для меня, то, видимо, не угадали с ключом. У меня оно не расшифровывается (по крайней мере, почтовый клиент не смог) :) ___ nginx-ru mailing list nginx-ru@nginx.org