nging прокси

2016-05-05 Thread Dmitry
Добрый день! Возникла аздача проксировать https на два сервера, но со следующими условиями, если один севрвер ответит определенными запросом (не абонента в биллинге), то проксировать на второй сервер, пример так вот: https://1.1.1.1:1443/osmp-s.php?command=check=1104492_id=201604290950=20.00

Re: nginx wrong with systemd

2016-05-05 Thread supersnd
question is on selinux, Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266640,21#msg-21 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

proxy cache + pseudo-streaming for mp4/flv

2016-05-05 Thread bossfrog
Hi guys! In order to make the `proxy cache` and `pseudo-streaming for mp4/flv` work together, I do a rough hacking on nginx 1.9.12 (there is my patch: https://pastebin.mozilla.org/8869689). It works well apparently, but I wonder that if I did it right? or I was taking a risk? Posted at Nginx

Re: HTTP2 Multiplexing

2016-05-05 Thread Muhui Jiang
Hi Thanks Valentin. I've know the principle Best Regards Muhui Jiang 2016-05-04 19:18 GMT+08:00 Valentin V. Bartenev : > On Wednesday 04 May 2016 18:50:44 Muhui Jiang wrote: > > Hi > > > > >Nginx allows multiple request and responses in multiple connections > using > >

Re: openshift-nginx docker image running as non-root

2016-05-05 Thread Paulo Leal
Hi, I added the lines to my dockerfile Run ... && chmod 777 /var/log/nginx / && rm -rf /var/log/nginx/error.log / && rm -rf /var/log/nginx/access.log It worked for me! Thanks for your help. Paulo Leal On Thu, May 5, 2016 at 12:57 PM, Aleksandar Lazic wrote: >

Re: Rewrite before regex location

2016-05-05 Thread Francis Daly
On Thu, May 05, 2016 at 05:13:29AM +0530, Joyce Babu wrote: Hi there, > Is it possible to do something like this? > > location /test/ { > rewrite "^/test/([a-z]+).php$" /php-fpm/test/test.php?q=$1 last; > } > > location ~ ^/php-fpm/ { > location ~ [^/]\.php(/|$) { >

Re: Подмена бинарника в докере

2016-05-05 Thread Igor Sysoev
On 05 May 2016, at 18:55, Anton Bessonov wrote: > On 26.04.2016 22:19, Igor Sysoev wrote: >> On 26 Apr 2016, at 19:27, Anton Bessonov wrote: >> >>> Спасибо большое, работает. И с демонизацией тоже. >>> >>> Но наблюдаю эффект, что если убить мастера, то

Re: Подмена бинарника в докере

2016-05-05 Thread Anton Bessonov
On 26.04.2016 22:19, Igor Sysoev wrote: On 26 Apr 2016, at 19:27, Anton Bessonov wrote: Спасибо большое, работает. И с демонизацией тоже. Но наблюдаю эффект, что если убить мастера, то воркер остаётся один. И только после убивания воркера ломается контейнер. Можно сделать

Re: Building ngx_postgres module as dynamic

2016-05-05 Thread Andrew Hutchings
Hi, On 05/05/16 16:01, npyxg1mg2kn7dvk0rl06 wrote: I made appropriative changes and now I have undefined symbol: PQsendQuery on module loading. Not sure if PQsendQuery even should be linked. https://github.com/cryptofuture/ngx_postgres - repo with changes, in case someone will be charitable

Re: openshift-nginx docker image running as non-root

2016-05-05 Thread Aleksandar Lazic
Hi. Am 04-05-2016 23:50, schrieb Francis Daly: On Wed, May 04, 2016 at 06:25:01PM -0300, Paulo Leal wrote: Hi there, Completely untested by me; and I've not used openshift or docker, but: I have been playing around with the https://github.com/nginxinc/openshift-nginx dockerfile and trying

Monitoring nginx metrics

2016-05-05 Thread 洪志道
Hi, Recently I upgrade nginx and wrote a module for monitoring response metrics. It’s simple but handy and useful. Maybe the nginx can support more informations like stub status module. https://github.com/hongzhidao/nginx-http-metric-module Regards.

RE: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-05 Thread Lukas Tribus
> nginx version: nginx/1.2.6 > built by gcc 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) > [...] > CentOS 6.7 server Try disabling kerberos cipher suites [1], you may be hitting some obscure CentOS/RedHat libc issues [2]. [1]

Re: Building ngx_postgres module as dynamic

2016-05-05 Thread npyxg1mg2kn7dvk0rl06
On Wed, May 4, 2016, at 01:46 PM, Maxim Dounin wrote: > Hello! > > On Wed, May 04, 2016 at 07:28:23PM +0200, npyxg1mg2kn7dvk0rl06 wrote: > > > I have problem with building ngx_postgres module as dynamic module > > >/etc/nginx/modules/ngx_postgres.so: undefined symbol: ngx_postgres > >

Re: (52) Empty reply from server

2016-05-05 Thread Valentin V. Bartenev
On Thursday 05 May 2016 10:27:46 Pankaj Chaudhary wrote: > Hi, > > thank you! > My module is basically for resource protection. > I have already running my module on other servers also. > My module follow below steps. > -Generate cookie and write in response header > -read from header when

Re: [nginx] HTTP/2: rewritten handling of request body.

2016-05-05 Thread Valentin V. Bartenev
On Wednesday 04 May 2016 18:52:24 Alexey Ivanov wrote: > There is a small issue with setting `SETTINGS_INITIAL_WINDOW_SIZE` to 0: now > when client tries to POST data it needs to wait for an additional RTT(between > `send HEADERS` and `recv WINDOW_UPDATE`) to start sending data. > [..] Yes,

Re: Часть запросов с анамольно большим $request time

2016-05-05 Thread Maxim Dounin
Hello! On Thu, May 05, 2016 at 08:19:17AM -0400, malaf wrote: > > > Влияние "медленных клиентов" на значение $request_time вроде отсёк, > > проверив > > > лог после обращения к странице в кеше с помощью curl --limit-rate > > 20K > > > example.com > /dev/null, время ответа было 4 секунды, в лог >

Re: Часть запросов с анамольно большим $request time

2016-05-05 Thread malaf
> > Влияние "медленных клиентов" на значение $request_time вроде отсёк, > проверив > > лог после обращения к странице в кеше с помощью curl --limit-rate > 20K > > example.com > /dev/null, время ответа было 4 секунды, в лог > request_time > > записался со значение 0. > > Использование "curl

Re: ssl test causes nginx to crash (SSL_do_handshake() failed)

2016-05-05 Thread kostbad
How do i update to the latest stable version of nginx on a CentOS 6.7 server? Are there any precautions before the update? Will if affect my current settings-conf ? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266590,266641#msg-266641

nginx wrong with systemd

2016-05-05 Thread supersnd
default.conf location / { #root /usr/share/nginx/html; root /sdd/; #index index.html index.htm; autoindex on; [root@centos /]# /usr/sbin/nginx -c /etc/nginx/nginx.conf I can read the files [root@centos /]systemd start nginx 403 Forbidden nginx/1.9.15 I add

Replace apache with nginx

2016-05-05 Thread Christian Ivanov
Hello there. I want to migrate my website only on nginx. I setup everything, but have issue with my htaccess. Here is the file: [root@server]# cat .htaccess RewriteEngine On RewriteRule ^audio-(.*)\.html$ %{ENV:BASE}/audio_redirect_mask.php [L] RewriteRule ^s/(.*)$