Re: NGINX: Set/use requests with fully qualified domain name (= FQDN).

2016-05-11 Thread Francis Daly
On Wed, May 11, 2016 at 07:24:09AM -0400, Sportmodus wrote: Hi there, > Now I want to proxy_pass an external server and I have to use our proxy for > this to get an external connection. Stock nginx does not speak proxy-http to a proxy server. > Can I modify this to > > "GET

Re: limit_req_zone

2016-05-11 Thread tom.b
Thank you Yuriy, Cheers, Tom. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266845,266854#msg-266854 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: limit_req_zone

2016-05-11 Thread tom.b
Thank you Robert Cheers, Tom. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266845,266853#msg-266853 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 5:36 PM, Alex Hall wrote: > > The output of > sudo ps aux | grep php > > admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php > root 18852 0.0 0.6 295568 24484 ?Ss May09 0:08 php-fpm: > master process

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
Configuration of pool in /etc/php5/fpm/pool.d/ in Ubuntu/Debian. 2016-05-12 0:36 GMT+03:00 Alex Hall : > The output of > sudo ps aux | grep php > > admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php > root 18852 0.0 0.6 295568 24484 ?Ss

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
The output of sudo ps aux | grep php admin16599 0.0 0.0 12728 2164 pts/0S+ 21:34 0:00 grep php root 18852 0.0 0.6 295568 24484 ?Ss May09 0:08 php-fpm: master process (/etc/php5/fpm/php-fpm.conf) www-data 18857 0.0 0.7 300736 29408 ?SMay09 0:00

Re: limit_req_zone

2016-05-11 Thread Yuriy Medvedev
You can see in source/auto/options by default HTTP_LIMIT_CONN=YES HTTP_LIMIT_REQ=YES 2016-05-12 0:12 GMT+03:00 tom.b : > Greetings fellow nginx users, > > Is the limit_req_zone module included in the core version ? I't doesn't > show > up when I list the modules

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 5:19 PM, Alex Hall wrote: > > > >> On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: >> Hello, >> >> On May 11, 2016, at 4:54 PM, Alex Hall wrote: >> >>> >>> On Wed, May 11, 2016 at 4:50 PM, Jim

Re: limit_req_zone

2016-05-11 Thread Robert Paprocki
This module is built by default, and does not need to be explicitly enabled. Thus you will not see it as part of the configure options. On Wed, May 11, 2016 at 2:12 PM, tom.b wrote: > Greetings fellow nginx users, > > Is the limit_req_zone module included in the

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: > Hello, > > On May 11, 2016, at 4:54 PM, Alex Hall wrote: > > > > On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: > >> Hello, >> >> > Is it possible that your script is trying to

limit_req_zone

2016-05-11 Thread tom.b
Greetings fellow nginx users, Is the limit_req_zone module included in the core version ? I't doesn't show up when I list the modules via nginx -V although when I add the directive into my nginx configuration it appears works fine and limit requests I am using 1.8.1-1.el6.ngx installed from

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 4:54 PM, Alex Hall wrote: > > > >> On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: >> Hello, > > Is it possible that your script is trying to write a configuration file and > > lacks proper > permission in that directory?

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
example of php-fpm pool configuration user = www-data group = www-data pm = dynamic pm.max_children = 50 pm.start_servers = 20 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.status_path = /fpm-status ping.path = /fpm-ping ping.response = pong chdir = /var/www/test.ex.com

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
You can configure it In configuration of pool php_admin_value[error_log] = /var/log/tes2.ex.com-fpm-php-error.log 2016-05-11 23:26 GMT+03:00 Alex Hall : > Thanks for the quick response. Unfortunately, I'm not having any luck, > unless I mistyped one of the rules. I also

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: > Hello, > > > Is it possible that your script is trying to write a configuration file and lacks proper > permission in that directory? Yes, very possible, and I'd even say likely. The thing is, I can't find out what the

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Jim Ohlstein
Hello, > On May 11, 2016, at 4:26 PM, Alex Hall wrote: > > Thanks for the quick response. Unfortunately, I'm not having any luck, unless > I mistyped one of the rules. I also can't find where errors go. Anyone know > where, or if, errors in fastcgi/php5-fpm are logged?

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
Thanks for the quick response. Unfortunately, I'm not having any luck, unless I mistyped one of the rules. I also can't find where errors go. Anyone know where, or if, errors in fastcgi/php5-fpm are logged? /var/log/php5-fpm.log is empty. On Wed, May 11, 2016 at 4:09 PM, Yuriy Medvedev

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Yuriy Medvedev
Try my config for Osticket 1.7, nginx+php-fpm I create that's config just for testing server { listen 80; server_name test.com; access_log /var/log/nginx/tickets.access.log; error_log /var/log/nginx/tickets.error.log info; index index.php; root /var/www/ticket; client_max_body_size 5M;

Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
Hi all, I'm using Nginx (obviously), but I want to try OSTicket. The only supported servers for it are, for whatever reason, Apache and IIS. I hate IIS, and I don't know how I'd run Apache and Nginx together (plus Nginx seems much simpler than Apache to me). Does anyone have OSTicket working under

Re: Как перехватить ответ Apache внутри Nginx?

2016-05-11 Thread Илья Шипицин
каким образом вы хотите модифицировать ответ ? статус ? тело ? хедеры? есть пример? 11 мая 2016 г., 20:17 пользователь Babaev написал: > Если взять конфигурацию nginx, то в разделе location есть директива > proxy_pass с адресом IP, по которому сидит Apache. >

Re: Fixing ngx_http_slice_module use with named locations

2016-05-11 Thread Mindaugas Rasiukevicius
Hi, To illustrate the fix I mentioned -- please find the patches attached. Thanks. -- Mindaugas diff -r 19a54ba76c04 src/http/modules/ngx_http_slice_filter_module.c --- a/src/http/modules/ngx_http_slice_filter_module.c Wed May 11 17:55:30 2016 +0300 +++

Re: Как перехватить ответ Apache внутри Nginx?

2016-05-11 Thread Babaev
Если взять конфигурацию nginx, то в разделе location есть директива proxy_pass с адресом IP, по которому сидит Apache. После этой строчки как я понимаю - я могу получить тело ответа от Apache. Здесь и нужно перехватить ответ и его модифицировать. Posted at Nginx Forum:

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 10:50:37 AterCattus wrote: > Валентин Бартенев Wrote: > > Так не должно быть. > > > > В таком случае хотелось бы увидеть дебаг-лог: > > http://nginx.org/ru/docs/debugging_log.html > > > > Отдельно замечу, что nginx не допустит превышения окна соединения и в > > этом > >

[nginx] Removed a surplus condition from ngx_parse_inet6_url().

2016-05-11 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/19a54ba76c04 branches: changeset: 6534:19a54ba76c04 user: Ruslan Ermilov date: Wed May 11 17:55:30 2016 +0300 description: Removed a surplus condition from ngx_parse_inet6_url(). No functional changes, since the condition was

[nginx] Core: fixed port handling in ngx_parse_inet6_url().

2016-05-11 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/b358d670c654 branches: changeset: 6533:b358d670c654 user: Valentin Bartenev date: Wed May 11 17:55:20 2016 +0300 description: Core: fixed port handling in ngx_parse_inet6_url(). This fixes buffer over-read when no port is

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
Валентин Бартенев Wrote: --- > On Wednesday 11 May 2016 10:32:41 AterCattus wrote: > [..] > > > > Речь про окно на соединение. Я не тестил на стримах в 2ГБ (только > стримы на > > несколько мегабайт с суммарным трафиком на соединение в 2-3ГБ),

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Ah, that explains it. Thanks. nginx -V nginx version: nginx/1.6.2 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx

Re: timeout with UWSGI?

2016-05-11 Thread Andrew Hutchings
Hi Alex, nginx -V uses stderr, so try: nginx -V 2>/tmp/out.txt This will redirect stderr to the file instead of stdout. Kind Regards Andrew On 11/05/16 15:34, Alex Hall wrote: Ineeed. Sorry about that. The problem is that I can't capture the output of nginx -V, as--for some reason--the >

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 10:32:41 AterCattus wrote: [..] > > Речь про окно на соединение. Я не тестил на стримах в 2ГБ (только стримы на > несколько мегабайт с суммарным трафиком на соединение в 2-3ГБ), хотя сделаю > сейчас для полноты картины. > > Проблема в том, что UPDATE_WINDOW вообще больше

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Ineeed. Sorry about that. The problem is that I can't capture the output of nginx -V, as--for some reason--the > symbol is only producing an empty file. I can't copy and paste directly from or to the prompt either. If you tell me what you're looking for in nginx -V, I can tell you that value, but

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 10:13:01 AterCattus wrote: > AterCattus Wrote: > > > > Да, я видел фикс для (RST_STREAM, NO_ERROR). Надеялся, что хоть по > > превышению 2Г nginx отдаст еще 2Г в window_update, но нет. > > Выходит, единственное решение - это по истечению окна > > переподключаться? > > >

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
Валентин Бартенев Wrote: --- > On Wednesday 11 May 2016 10:06:58 AterCattus wrote: > > Валентин Бартенев Wrote: > > --- > > > On Wednesday 11 May 2016 09:55:40 AterCattus wrote: > > > > Да,

Re: timeout with UWSGI?

2016-05-11 Thread Aleksandar Lazic
Hi Alex. Am 11-05-2016 16:01, schrieb Alex Hall: Yes, I'm using uwsgi_pass: uwsgi_pass 127.0.0.1:9876 [1]; Hm. I think you have send the mail to early ;-) Please can you read again my mail and add some more lines to your answer, thank you. Best regards aleks On Wed, May 11, 2016 at 9:54

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
AterCattus Wrote: --- > Валентин Бартенев Wrote: > --- > > On Wednesday 11 May 2016 09:55:40 AterCattus wrote: > > > Да, конечно. За эти 2ГБ полезной нагрузки успевает выполнится > пачка > > >

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 10:06:58 AterCattus wrote: > Валентин Бартенев Wrote: > --- > > On Wednesday 11 May 2016 09:55:40 AterCattus wrote: > > > Да, конечно. За эти 2ГБ полезной нагрузки успевает выполнится пачка > > > последовательных запросов

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
Да, конечно. За эти 2ГБ полезной нагрузки успевает выполнится пачка последовательных запросов (т.е. nginx присылает все соответствующие HEADERS и DATA фреймы). Не говоря уже про обмен SETTINGS. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,266812,266814#msg-266814

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 09:55:40 AterCattus wrote: > Да, конечно. За эти 2ГБ полезной нагрузки успевает выполнится пачка > последовательных запросов (т.е. nginx присылает все соответствующие HEADERS > и DATA фреймы). Не говоря уже про обмен SETTINGS. > [..] Так пришлось сделать из-за славного

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
Валентин Бартенев Wrote: --- > On Wednesday 11 May 2016 09:55:40 AterCattus wrote: > > Да, конечно. За эти 2ГБ полезной нагрузки успевает выполнится пачка > > последовательных запросов (т.е. nginx присылает все соответствующие > HEADERS > > и

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Yes, I'm using uwsgi_pass: uwsgi_pass 127.0.0.1:9876; On Wed, May 11, 2016 at 9:54 AM, Aleksandar Lazic wrote: > Hi Alex, > > Am 11-05-2016 09:24, schrieb Francis Daly: > >> On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: >> >> Hi there, >> >> We may be finding the

Re: timeout with UWSGI?

2016-05-11 Thread Aleksandar Lazic
Hi Alex, Am 11-05-2016 09:24, schrieb Francis Daly: On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: Hi there, We may be finding the problem... I'm not sure what you mean by 'upstream service'. Somehow, you tell nginx to talk to "the next server". It can be with "proxy_pass" or

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread Valentin V. Bartenev
On Wednesday 11 May 2016 09:19:58 meteor8488 wrote: > Hi all, I just updated my configuration files as following > > location ~ \.php$ { > try_files $uri =404; > if ($arg_mod = "upload" ) { >

Re: Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread Валентин Бартенев
On Wednesday 11 May 2016 07:29:16 AterCattus wrote: > Доброго времени суток. > > Пробую на nginx 1.9.15 использовать http/2, но выходит, что nginx не > присылает обновления окна для flow control. > При установке соединения приходит обновление на 2147418112 октетов (плюс > исходные 65535, что дает

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread meteor8488
Hi all, I just updated my configuration files as following location ~ \.php$ { try_files $uri =404; if ($arg_mod = "upload" ) { return 485;

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

2016-05-11 Thread Lukas Tribus
> I updated nginx but the problem persists. > > Could it be some sort of misconfiguration of my nginx? No, but I suggest you try reconfiguring your cipher suites anyway to exclude anything kerberos related like previously suggested. Lukas

Для HTTP/2 nginx не присылает UPDATE WINDOW

2016-05-11 Thread AterCattus
Доброго времени суток. Пробую на nginx 1.9.15 использовать http/2, но выходит, что nginx не присылает обновления окна для flow control. При установке соединения приходит обновление на 2147418112 октетов (плюс исходные 65535, что дает максимум) и все, больше ничего. И после отправки 2ГБ payload в

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread meteor8488
Thanks for your quickly response. One more question, for client_body_buffer_size 16K, if the $request_body >16K, it seems nginx will put the request body into a temp file, and then no logs in log file, even though I enabled the request log. Does that mean the best way to keep the post log is to

NGINX: Set/use requests with fully qualified domain name (= FQDN).

2016-05-11 Thread Sportmodus
Hi @ all. NGINX proxy_pass works great with our internal servers. Thanks for the good work. Now I want to proxy_pass an external server and I have to use our proxy for this to get an external connection. I checked with tcpdump and Wireshark. NGINX sends "GET /uri HTTP/1.1 HOST: external.com"

Re: TLS client certificate caching

2016-05-11 Thread milex
Благодарю, исчерпывающе. Posted at Nginx Forum: https://forum.nginx.org/read.php?21,266798,266801#msg-266801 ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

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

2016-05-11 Thread kostbad
I updated nginx but the problem persists. Could it be some sort of misconfiguration of my nginx? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266590,266800#msg-266800 ___ nginx mailing list nginx@nginx.org

Re: TLS client certificate caching

2016-05-11 Thread Maxim Dounin
Hello! On Wed, May 11, 2016 at 06:39:59AM -0400, milex wrote: > Добрый день, коллеги! > > Провожу нагрузочное тестирование абстрактного сервера на базе Nginx+OpenSSL > с помощью JMeter. На сервере выполняется проверка клиентского сертификата > (двусторонняя аутентификация). Со стороны JMeter

TLS client certificate caching

2016-05-11 Thread milex
Добрый день, коллеги! Провожу нагрузочное тестирование абстрактного сервера на базе Nginx+OpenSSL с помощью JMeter. На сервере выполняется проверка клиентского сертификата (двусторонняя аутентификация). Со стороны JMeter создан контейнер с сертификатом клиента. Во время теста генерируются сотни

Re: proxy cache с заголовком Range.

2016-05-11 Thread Eugene Mychlo
Используете slice модуль. Он для этого и писан. > 10 мая 2016 г., в 20:40, kycedbi написал(а): > > Коллеги, здравствуйте. > Использую nginx для проксирования и кэширования на диск видео-файлов (mp4) > из социальной сети ВКонтакте. > Приложение на php узнаёт ссылку

Re: change client_body_buffer_size from 16K to 256K made the nginx logs size from 50M to 1G..

2016-05-11 Thread Francis Daly
On Wed, May 11, 2016 at 01:39:14AM -0400, meteor8488 wrote: > log_format plog '$remote_addr - $remote_user [$time_local] "$request" > ' > '$status $body_bytes_sent "$http_referer" ' > '"$http_user_agent" "$http_x_forwarded_for" "$request_body"'; What do you think that the

Re: timeout with UWSGI?

2016-05-11 Thread Francis Daly
On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: Hi there, > We may be finding the problem... I'm not sure what you mean by 'upstream > service'. Somehow, you tell nginx to talk to "the next server". It can be with "proxy_pass" or "fastcgi_pass" or, most likely here, "uwsgi_pass".

Re: (52) Empty reply from server

2016-05-11 Thread Pankaj Chaudhary
>You can read the headers_in data structure, and write the headers_out >data structure, as the examples show. I was able to write in headers_out data structure as i have shown my code already but i was not able to read from headers_in structure that is problem i am facing. I am looking solution