Re: internal location keepalive_requests issue

2016-08-26 Thread Maxim Dounin
Hello! On Fri, Aug 26, 2016 at 02:50:15PM -0400, crasyangel wrote: > location /hls { > error_page 404 = @hls; > keepalive_requests 1000; > } > > location @hls { > # Serve HLS fragments > types { >

Re: Обновление файла конфигурации (nginx.conf)

2016-08-26 Thread Alex Domoradov
Добавив include вы измените файл. Или я что то не понимаю 2016-08-26 18:25 GMT+03:00 Vadim A. Misbakh-Soloviov : > > А как вы вынесети директивы из контекста main/events, например, в > > /etc/nginx/conf.d? > > include > ___ > nginx-ru

internal location keepalive_requests issue

2016-08-26 Thread crasyangel
location /hls { error_page 404 = @hls; keepalive_requests 1000; } location @hls { # Serve HLS fragments types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } root /tmp;

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
It works by adding a X-Accel-Expires header to my php output what the fastcgi_cache will follow what also then means if i use proxy_cache it would follow it too :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269212,269219#msg-269219 ___

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
Maxim Dounin Wrote: --- > Hello! > > On Fri, Aug 26, 2016 at 11:01:05AM -0400, c0nw0nk wrote: > > > So I have been trying to make the fastcgi_cache_valid value based on > user > > request. > > > > if ($request_uri ~ "/url1" ) { > > set

Re: Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread Maxim Dounin
Hello! On Fri, Aug 26, 2016 at 11:01:05AM -0400, c0nw0nk wrote: > So I have been trying to make the fastcgi_cache_valid value based on user > request. > > if ($request_uri ~ "/url1" ) { > set $cachetime "any 5s"; > } > if ($request_uri ~ "/url2" ) { > set $cachetime "any 5m"; > } > > These did

Re: how to completely disable request body buffering

2016-08-26 Thread B.R.
fastcgi_request_buffering does deactivate request buffering from what I understand from the docs. client_body_buffer_size is said to be useful/used only when the previous directive is activated. >From what I read it seems your configuration attempts failed to load or to be activated where needed.

Re: keep-alive to backend + non-idempotent requests = race condition?

2016-08-26 Thread B.R.
What about marking the upstream servers you want to update as 'down' in their pool, reloading the configuration (HUP signal, gracefully shutting down old workers), and waiting for the links to those servers to be clear of any activity? ​Then upgrade and reintegrate updated servers in the pool

При обращении на ip адрес сервера ошибка HTTP Error 400. The request hostname is invalid.

2016-08-26 Thread dsolomon
Доброго времени суток! Я установил и настроил nginx на centOS 7. При попытке захода на ip адрес сервера выдает ошибку Bad Request - Invalid Hostname и HTTP Error 400. The request hostname is invalid. Что это может быть, подскажите, пожалуйста! Сервер доступен по ftp и по ssh по этому же ip

Nginx | fastcgi_cache_valid dynamic based on request

2016-08-26 Thread c0nw0nk
So I have been trying to make the fastcgi_cache_valid value based on user request. if ($request_uri ~ "/url1" ) { set $cachetime "any 5s"; } if ($request_uri ~ "/url2" ) { set $cachetime "any 5m"; } These did not work because it turns out your not allowed to have a dynamic variable within the

Re: Обновление файла конфигурации (nginx.conf)

2016-08-26 Thread Дмитрий Андреев
пт, 26 авг. 2016 г. в 15:25, Alex Domoradov : > При обновлении вроде будет спрашивать, там можно будет посмотреть различия > и оставить старый или применить новый > А если директивы, дефолтные значения которых не нравятся, переопределять в /etc/nginx/conf.d, что зачастую

[nginx] Stream: the $bytes_received variable.

2016-08-26 Thread Vladimir Homutov
details: http://hg.nginx.org/nginx/rev/5e2821c2de46 branches: changeset: 6668:5e2821c2de46 user: Vladimir Homutov date: Fri Aug 26 15:33:02 2016 +0300 description: Stream: the $bytes_received variable. The variable keeps the number of bytes received from the client.

[nginx] Stream: the $session_time variable.

2016-08-26 Thread Vladimir Homutov
details: http://hg.nginx.org/nginx/rev/164a0824ce20 branches: changeset: 6669:164a0824ce20 user: Vladimir Homutov date: Fri Aug 26 15:33:04 2016 +0300 description: Stream: the $session_time variable. The variable keeps time spent on processing the stream session.

[nginx] Stream: the $protocol variable.

2016-08-26 Thread Vladimir Homutov
details: http://hg.nginx.org/nginx/rev/c6372a40c2a7 branches: changeset: 6670:c6372a40c2a7 user: Vladimir Homutov date: Fri Aug 26 15:33:07 2016 +0300 description: Stream: the $protocol variable. The variable keeps protocol used by the client, "TCP" or "UDP".

Re: Обновление файла конфигурации (nginx.conf)

2016-08-26 Thread Alex Domoradov
При обновлении вроде будет спрашивать, там можно будет посмотреть различия и оставить старый или применить новый 2016-08-26 10:40 GMT+03:00 Helper code : > Daniel Podolsky Wrote: > --- > > Сильно зависит от способа,

[nginx] Thread pools: create threads in detached state.

2016-08-26 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/33d075b9097d branches: changeset: 6667:33d075b9097d user: Piotr Sikora date: Mon Aug 15 05:52:04 2016 -0700 description: Thread pools: create threads in detached state. This prevents theoretical resource leak, since

Re: nginx-http-concat module

2016-08-26 Thread Alt
GreenGecko Wrote: --- > answering my own question. If any of the files are missing, it returns > a > 404. Hello, I've never used nginx-http-concat, but you can disable this behavior with "concat_ignore_file_error on". Found in the doc:

Re: Внешние ip адреса для proxy bind

2016-08-26 Thread jtiq
skeletor Wrote: --- > а этот IP назначен интерфейсу? nginx его слушает? да Posted at Nginx Forum: https://forum.nginx.org/read.php?21,269007,269203#msg-269203 ___ nginx-ru mailing list

Re: Обновление файла конфигурации (nginx.conf)

2016-08-26 Thread Helper code
Daniel Podolsky Wrote: --- > Сильно зависит от способа, которым вы обновляете nginx, Вы не > находите? Стандартным для Ubuntu (apt-get update и apt-get upgrade). Posted at Nginx Forum:

Re: Обновление файла конфигурации (nginx.conf)

2016-08-26 Thread Daniel Podolsky
> Происходит ли обновление (изменение) nginx.conf при обновлении версии nginx > или он остается статическим после первой инсталляции nginx? Сильно зависит от способа, которым вы обновляете nginx, Вы не находите? ___ nginx-ru mailing list

add coroutines for nginx

2016-08-26 Thread xianliang
read file is block, nginx can Using coroutines implementation file to read and write。(write log file and read cache file) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,269199,269199#msg-269199 ___ nginx mailing list nginx@nginx.org