[nginx] Win32: fixed init_process without master process (ticket...

2013-11-29 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/b7bf4671bb7b branches: changeset: 5452:b7bf4671bb7b user: Maxim Dounin mdou...@mdounin.ru date: Fri Nov 29 17:23:47 2013 +0400 description: Win32: fixed init_process without master process (ticket #453). Init process callbacks are called by

[nginx] Version bump.

2013-11-29 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/8f3cf6776648 branches: changeset: 5449:8f3cf6776648 user: Maxim Dounin mdou...@mdounin.ru date: Fri Nov 29 17:11:36 2013 +0400 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[nginx] Upstream: skip empty cache headers.

2013-11-29 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/e68af4e3396f branches: changeset: 5451:e68af4e3396f user: Maxim Dounin mdou...@mdounin.ru date: Fri Nov 29 17:23:38 2013 +0400 description: Upstream: skip empty cache headers. Notably this fixes HTTP_IF_MODIFIED_SINCE which was always sent with

[nginx] SSL: fixed c-read-ready handling in ngx_ssl_recv().

2013-11-29 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/9868c72f6f43 branches: changeset: 5450:9868c72f6f43 user: Maxim Dounin mdou...@mdounin.ru date: Fri Nov 29 17:16:06 2013 +0400 description: SSL: fixed c-read-ready handling in ngx_ssl_recv(). If c-read-ready was reset, but later some data were

Re: Проблема с загрузкой изображений при использовании limit req. Как побороть?

2013-11-29 Thread Anton Yuzhaninov
On 11/28/13 23:47, Sferg wrote: location ~ ^.+\.php(?:/.*)?$ { limit_req zone=reqPerSec1 burst=5 nodelay; include conf.d/php.conf; } В результате получается, что при загрузке html-странички, css и картинки грузятся исправно, даже если часто

Балансировка обращений к сервисам

2013-11-29 Thread Digan
Есть MVC приложение, в котором указан ServiceReference на сервисы. В коде на С# есть обращения к этим сервисам. Сервисы установлены на двух серверах. Требуется балансировать нагрузку на сервисы по этим серверам. Для балансировки использую nginx с модулем nginx-sticky-module. Он, как известно,

Re: Странное кешрование в nginx

2013-11-29 Thread greenh
29 ноября 2013 г., 18:31 пользователь j...@jdwuzhere.ru написал: APC apc который в Php? странное поведение.. On 29 нояб. 2013 г., at 20:10, greenh gre...@gmail.com wrote: Добрый день подскажите плз, что это может быть за кеширование и кто за него отвечает создаю файл 1.php

Re: Странное кешрование в nginx

2013-11-29 Thread Sargas
Или Opcache с opcache.revalidate_freq=n секунд 29 ноября 2013 г., 18:53 пользователь greenh gre...@gmail.com написал: 29 ноября 2013 г., 18:31 пользователь j...@jdwuzhere.ru написал: APC apc который в Php? странное поведение.. On 29 нояб. 2013 г., at 20:10, greenh gre...@gmail.com

debug points abort, что делать с корками

2013-11-29 Thread proforg
Их как-то неприлично много развелось в последние дни gdb показывает вот такое: Program terminated with signal 6, Aborted. #0 0x7f694d6a41b5 in raise () from /lib/libc.so.6 (gdb) bt #0 0x7f694d6a41b5 in raise () from /lib/libc.so.6 #1 0x7f694d6a6fc0 in abort () from /lib/libc.so.6

Re: X-Accel-Redirect и uri escape

2013-11-29 Thread Rommer
Hello, Максим, этот пачт может решить проблему? Или все-таки на этот раз тоже неверный подход к решению? On 11/26/13 08:22, Роман Шишнев wrote: Hello, Забыл проверить %00, апдейт тут: http://pastebin.com/raw.php?i=cFsthQEi On 11/26/2013 08:09 AM, Роман Шишнев wrote: Hello, Не влез патч в

Re: X-Accel-Redirect и uri escape

2013-11-29 Thread Maxim Dounin
Hello! On Fri, Nov 29, 2013 at 11:17:23PM +0300, Rommer wrote: Hello, Максим, этот пачт может решить проблему? Или все-таки на этот раз тоже неверный подход к решению? Подход - верный, в том смысле, что именно там и надо решать. Но не полный (ssi, например, ломает, ибо он пытается делать

Re: Балансировка обращений к сервисам

2013-11-29 Thread Илья Шипицин
А обращение к сервису осуществляет самодельное приложение ? Оно запоминает и передает куки? пятница, 29 ноября 2013 г. пользователь Digan писал: Есть MVC приложение, в котором указан ServiceReference на сервисы. В коде на С# есть обращения к этим сервисам. Сервисы установлены на двух

Nginx fastcgi_next_upstream off doesn't work

2013-11-29 Thread Oleg V. Khrustov
nginx/1.5.4 location / { ... fastcgi_pass bg; fastcgi_next_upstream off; ... } upstream bg { server unix:/tmp/dsp.1.sock; server unix:/tmp/dsp.2.sock; server unix:/tmp/dsp.3.sock; server unix:/tmp/dsp.4.sock; server unix:/tmp/dsp.5.sock; server

Re: Service availability during reload

2013-11-29 Thread B.R.
Hello, Sometimes reading the documentation might help : http://nginx.org/en/docs/control.html If you look at your service file, you'll notice that a 'reload' means sending SIGHUP to the master process for the particular case of nginx. I'll leave the conclusion to you, assuming that the doc is

Re: Proxy_pass with decode_base64 result

2013-11-29 Thread Jugurtha
Hi and thank you for your help Francis ;) I had already tested the IP resolver with Google DNS, but I just realized that the firewall of the company blocked the DNS traffic !!! Also, my server has a DNS entry (/etc/resolv.conf) so I do not understand why I had to add this tag in nginx. Anyway,

Re: Service availability during reload

2013-11-29 Thread Andre Nathan
On 11/29/2013 10:13 AM, Maxim Dounin wrote: Connections are handled by worker processes. On SIGHUP, master process parses new configuration and spawns new worker processes (while old workers still handle requests). Then it asks old workers to gracefully shutdown. That is, all the time

Re: Nginx fastcgi_intercept_errors

2013-11-29 Thread Maxim Dounin
Hello! On Fri, Nov 29, 2013 at 03:36:18PM +0400, Oleg V. Khrustov wrote: nginx/1.5.4 doesnt intercept fastcgi errors. location / { fastcgi_pass bg; error_page 500 502 503 504 408 404 =204 /204.htm; fastcgi_intercept_errors on; . } However in

Re: Nginx fastcgi_intercept_errors

2013-11-29 Thread Maxim Dounin
Hello! On Fri, Nov 29, 2013 at 04:59:56PM +0400, Maxim Dounin wrote: Hello! On Fri, Nov 29, 2013 at 03:36:18PM +0400, Oleg V. Khrustov wrote: nginx/1.5.4 doesnt intercept fastcgi errors. location / { fastcgi_pass bg; error_page 500 502 503 504 408 404 =204

Re: Nginx fastcgi_next_upstream off doesn't work

2013-11-29 Thread Maxim Dounin
Hello! On Fri, Nov 29, 2013 at 03:50:52PM +0400, Oleg V. Khrustov wrote: nginx/1.5.4 location / { ... fastcgi_pass bg; fastcgi_next_upstream off; ... } upstream bg { server unix:/tmp/dsp.1.sock; server unix:/tmp/dsp.2.sock; server

Re: Nginx fastcgi_intercept_errors

2013-11-29 Thread Oleg V. Khrustov
1) /etc/init.d/nginx configtest nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful It was definitely reloaded prior doing any tests. 2) I have a separate access log file for this specific (root) location with

Re: Nginx fastcgi_intercept_errors

2013-11-29 Thread Oleg V. Khrustov
Many thanks, works like a charm. The reason is Wrong location settings. On Fri, Nov 29, 2013 at 5:02 PM, Maxim Dounin mdou...@mdounin.ru wrote: Hello! On Fri, Nov 29, 2013 at 04:59:56PM +0400, Maxim Dounin wrote: Hello! On Fri, Nov 29, 2013 at 03:36:18PM +0400, Oleg V. Khrustov

Re: Nginx fastcgi_next_upstream off doesn't work

2013-11-29 Thread Oleg V. Khrustov
Yes, you are absolutely right. Thanks again! ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

new to web

2013-11-29 Thread Matthew Ngaha
Hi guys i'm very new to web dev, and getting started with nginx i just wanted to ask a few things. Location blocks. Is the idea here to have as many location blocks as you have web pages? if a location has many files in it will nginx search if the requested file is in that location? i put a file

Re: Nginx/iptables passing ipclient ip

2013-11-29 Thread Francis Daly
On Fri, Nov 29, 2013 at 05:44:41PM -0500, Todd@VRG wrote: Hi there, nginx is forwarding traffic to webservers.. proxy_set_header X-Forwarded-For $remote_addr; the ip address I still see in the logs is the eth0 = internal_ ip Using tcpdump, or otherwise, watch the request going from nginx

Re: new to web

2013-11-29 Thread Francis Daly
On Fri, Nov 29, 2013 at 04:59:24PM +, Matthew Ngaha wrote: Hi there, One of the best things you can learn about is your server error log. Read that, and it should tell you why nginx thinks something failed, every time. Location blocks. Is the idea here to have as many location blocks as