Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
Ok, I understand what is happening now, thank you! On Wed, Apr 20, 2016 at 11:52 AM, Maxim Dounin wrote: > Hello! > > On Wed, Apr 20, 2016 at 09:24:52AM -0400, CJ Ess wrote: > > > I've tried putting this directive into the nginx config file in both the > > main and html

Re: (52) Empty reply from server

2016-04-20 Thread Francis Daly
On Wed, Apr 20, 2016 at 12:54:13PM +0530, Pankaj Chaudhary wrote: Hi there, > >>But your code snippet does not match exactly the types and return values > >>of that example. I don't know if that is something worth investigating. > > I have tried to change match exactly the types and return

Re: Making Tomcat accessible only through nginx reverse proxy

2016-04-20 Thread Francis Daly
On Wed, Apr 20, 2016 at 07:19:55AM -0400, gischethans wrote: Hi there, > I have a Tomcat server serving a web application and I have a Nginx server > running in front of it as a reverse proxy. What you need is that your users talk to nginx, and that nginx is able to talk to tomcat. What you

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread Maxim Dounin
Hello! On Wed, Apr 20, 2016 at 09:24:52AM -0400, CJ Ess wrote: > I've tried putting this directive into the nginx config file in both the > main and html sections: > > error_log syslog:server=127.0.0.1,facility=local5 error; > > The file tests fine and reloads without issue, however if I do

Re: Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
Yes, I went as far as to stop nginx altogether, manually verify there are no nginx processes running, then start it again and it opens the error log first thing. On Wed, Apr 20, 2016 at 9:51 AM, Robert Paprocki < rpapro...@fearnothingproductions.net> wrote: > Have you done a full restart (not a

Re: 3rd party modules requiring ngx_http_postpone_filter_module

2016-04-20 Thread Maxim Dounin
Hello! On Wed, Apr 20, 2016 at 12:33:17AM -0400, Anthony Ryan wrote: > Hello, > > I'm currently looking for ideas to resolve a 3rd party module > regression[1][2] that I keep running into, and figured it would be > best to consult the experts. > > The ngx_http_postpone_filter_module is a

Sending nginx errors to syslog but fuser -u still shows error file open by nginx

2016-04-20 Thread CJ Ess
I've tried putting this directive into the nginx config file in both the main and html sections: error_log syslog:server=127.0.0.1,facility=local5 error; The file tests fine and reloads without issue, however if I do fuser -u on the error file (which is the same one used by syslog) I see that

Re: [nginx-announce] nginx-1.9.15

2016-04-20 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.9.15 for Windows https://kevinworthington.com/nginxwin1915 (32-bit and 64-bit versions) This version was built with OpenSSL 1.0.2g, so upgraded is strongly encouraged. These versions are to support legacy users who are already using Cygwin based builds

Making Tomcat accessible only through nginx reverse proxy

2016-04-20 Thread gischethans
I have a Tomcat server serving a web application and I have a Nginx server running in front of it as a reverse proxy. Both the servers are on Intranet, in the same domain network. The issue I am facing is, the tomcat server is accessible through both IP addresses - if I use the Nginx IP, it

Re: reuseport в конфигах nginx

2016-04-20 Thread navern
Пусть у нас хост на линуксе, старый nginx слушает порт 8080, новый 8081, действует правило перенаправления 80->8080, после старта второго nginx заменяем правило командочкой iptables -t nat -R PREROUTING 1 -p tcp --dport 80 -j REDIRECT --to-port 8081 и ждём, когда все соединения со

Re: Redirection problem again in new rules.

2016-04-20 Thread Muhammad Yousuf Khan
Thanks Alot Francis Daly, actually i was trying to understand the working of rewrite and location rules how they handle the query. you explain it very well. Thanks again for sharing such useful and detailed explanation. i really appreciate that. :) On Tue, Apr 19, 2016 at 4:23 AM, Francis Daly

Re: reuseport в конфигах nginx

2016-04-20 Thread Evgeniy Berdnikov
On Wed, Apr 20, 2016 at 12:12:21PM +0300, navern wrote: > > Да хоть на Юпитере. Он вообще-то в контейнере. Ядро может входящие > > коннекции перенаправлять на любой порт, и ip-адрес можно менять. > > Без разницы, как отличать новый сервер от старого, по ip или порту, > > но в любом случае их

Re: reuseport в конфигах nginx

2016-04-20 Thread navern
Да хоть на Юпитере. Он вообще-то в контейнере. Ядро может входящие коннекции перенаправлять на любой порт, и ip-адрес можно менять. Без разницы, как отличать новый сервер от старого, по ip или порту, но в любом случае их нужно как-то различать. Ок, предложите вариант решения данной

Re: reuseport в конфигах nginx

2016-04-20 Thread Evgeniy Berdnikov
On Wed, Apr 20, 2016 at 11:37:50AM +0300, navern wrote: > On 20.04.2016 11:19, Evgeniy Berdnikov wrote: > > Так же как и вашем. В чём проблема-то? Если в пересечении портов > > для bind(2), так порты нужно сделать разными, вот и всё. > Nginx во фронтэнде. Какие разные порты? Да хоть на

Re: reuseport в конфигах nginx

2016-04-20 Thread navern
On 20.04.2016 11:19, Evgeniy Berdnikov wrote: Так же как и вашем. В чём проблема-то? Если в пересечении портов для bind(2), так порты нужно сделать разными, вот и всё. Nginx во фронтэнде. Какие разные порты? reuseport как раз позволяет при одинаковых портах поднять два контейнера с

Re: reuseport в конфигах nginx

2016-04-20 Thread Evgeniy Berdnikov
On Wed, Apr 20, 2016 at 11:02:39AM +0300, navern wrote: > On 20.04.2016 10:57, Evgeniy Berdnikov wrote: > > О какой альтернативе речь? Перенаправьте syn'ы на новый контейнер, > > и будет вам счастье без патчей и потерь входящих соединений. > А как поднять два контейнера одновременно в вашем

Re: reuseport в конфигах nginx

2016-04-20 Thread navern
On 20.04.2016 10:57, Evgeniy Berdnikov wrote: О какой альтернативе речь? Перенаправьте syn'ы на новый контейнер, и будет вам счастье без патчей и потерь входящих соединений. А как поднять два контейнера одновременно в вашем варианте? И что делать с соединениями, которые висят по 10-15

Re: reuseport в конфигах nginx

2016-04-20 Thread Evgeniy Berdnikov
On Tue, Apr 19, 2016 at 05:43:58PM +0300, navern wrote: > >Вас не смущает, что при этом часть соединений будет потеряна? > Ну это не супер приятно да, но альтернатива хуже. Потому что в > альтернативном варинте часть соединений будет невозможна на то > время, пока мы опустили один контейнер, а

Re: (52) Empty reply from server

2016-04-20 Thread Pankaj Chaudhary
>>But your code snippet does not match exactly the types and return values >>of that example. I don't know if that is something worth investigating. I have tried to change match exactly the types and return values of that example. but below is response curl: (52) Empty reply from server >>Also,