top n url

2016-06-22 Thread 洪志道
Hi, Is it possible to find the top 100 urls by visits in real time? You know I dose not want to find the infos from the log file. B.R. ___ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel

Re: Enable HTTP2 in one of several name-based servers

2016-06-22 Thread Valentin V. Bartenev
On Wednesday 22 June 2016 18:32:47 Marcelo MD wrote: > Hi, > > Is it possible to enable http2 in only one of several name-based servers? > [..] No, it's not possible. wbr, Valentin V. Bartenev ___ nginx mailing list nginx@nginx.org

Enable HTTP2 in one of several name-based servers

2016-06-22 Thread Marcelo MD
Hi, Is it possible to enable http2 in only one of several name-based servers? I have the following scenario: server { listen 443 ssl; server_name www.example.com; ssl_certificate www.example.com.crt; ... } server { listen 443 ssl http2; server_name

[PATCH] Headers filter: style

2016-06-22 Thread Piotr Sikora
# HG changeset patch # User Piotr Sikora # Date 1466628475 25200 # Wed Jun 22 13:47:55 2016 -0700 # Node ID 0419e0ead3d63b8d96f59fc3c74b36bf9f3fe188 # Parent 191e23214dfbaf01255d421f5bbe0d5541d03a2f Headers filter: style. Signed-off-by: Piotr Sikora

Re: nginx core dump explodes

2016-06-22 Thread Valentin V. Bartenev
On Wednesday 22 June 2016 14:50:27 martinproinity wrote: > Here you go: https://tempfile.me/dl/ES9tWLqjnFozdx/ > > Thanks! > Please try the patch: http://pp.nginx.com/vbart/patches/http2_fix.txt wbr, Valentin V. Bartenev ___ nginx mailing list

Re: SSL handshake failed with mutual TLS

2016-06-22 Thread Andrey Novikov
Thank everyone for advices. I have server certificate (first) and Intermediate CA certificate (second) in bundle file specified in `ssl_certificate` directive. I have Intermediate CA certificate (first) and Root CA certificate (second) in bundle file specified in `ssl_client_certificate`. Both

[PATCH] Pass configuration options to PCRE build

2016-06-22 Thread Marcelo MD
# HG changeset patch # User Marcelo Mallmann # Date 1466622014 10800 # Wed Jun 22 16:00:14 2016 -0300 # Node ID 3458ac42b0ce4e004516411eeab5a960253c1eac # Parent 191e23214dfbaf01255d421f5bbe0d5541d03a2f Pass configuration options to PCRE build Add

Re: HTTP2 site does not loads on firefox

2016-06-22 Thread Richard Stanway
You need to provide more information such as Firefox error messages, nginx config, server hostname, etc. You may find https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor useful. I did notice your cipher suites include blacklisted ciphers, but this shouldn't be an issue for outright

Re: nginx core dump explodes

2016-06-22 Thread martinproinity
Here you go: https://tempfile.me/dl/ES9tWLqjnFozdx/ Thanks! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,267669,267783#msg-267783 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

nginScript (njs) feedback

2016-06-22 Thread Jorge L.
I'm trying to implement a routing logic with nginScript. I haven't been successful because I miss important javascript feature. I would like to give you my feedback just in case it may help to improve njs (from more important/blocking to less important): - There is no way to iterate through

Re: nginx core dump explodes

2016-06-22 Thread Valentin V. Bartenev
On Wednesday 22 June 2016 11:31:27 martinproinity wrote: > Here more of the debug log. I had to shorten it as I did get this message > "Please shorten your messages, the body is too large". [..] Partial log doesn't help because I need to follow up all the events in the connection till it has

Re: nginx core dump explodes

2016-06-22 Thread martinproinity
Here more of the debug log. I had to shorten it as I did get this message "Please shorten your messages, the body is too large". Thanks! 2016/06/19 19:53:09 [debug] 8724#0: *19047 accept: :54691 fd:236 2016/06/19 19:53:09 [debug] 8724#0: *19047 event timer add: 236: 6:1466358849721

RE:[module dev] PCRE compiled code lost at reload

2016-06-22 Thread MAGNIEN, Thierry
OK, this clears up things. Thanks a lot! Thierry De : nginx-devel [nginx-devel-boun...@nginx.org] de la part de Maxim Dounin [mdou...@mdounin.ru] Envoyé : mercredi 22 juin 2016 16:59 À : nginx-devel@nginx.org Objet : Re: [module dev] PCRE compiled code

Re: [module dev] PCRE compiled code lost at reload

2016-06-22 Thread Maxim Dounin
Hello! On Wed, Jun 22, 2016 at 02:49:36PM +, MAGNIEN, Thierry wrote: > I think I start understanding what's wrong. > > Let me explain what I've done: > > I have a ngx_http_mymodule_data_t struct which include this: > ngx_pool_t*regex_pool; > > After initializing my

RE:[module dev] PCRE compiled code lost at reload

2016-06-22 Thread MAGNIEN, Thierry
Hi, I think I start understanding what's wrong. Let me explain what I've done: I have a ngx_http_mymodule_data_t struct which include this: ngx_pool_t *regex_pool; After initializing my data struct in shared memory, I do something like this: my_data->regex_pool =

Re: [module dev] PCRE compiled code lost at reload

2016-06-22 Thread Maxim Dounin
Hello! On Wed, Jun 22, 2016 at 02:21:51PM +, MAGNIEN, Thierry wrote: > Thanks for your response. I already saw that, and that's why I > use a dedicated pool in shared memory for regex compilation. All > my ngx_regex_compile_t structs allocate from this unique pool. > Could pool in shared

Re: nginx core dump explodes

2016-06-22 Thread Valentin V. Bartenev
On Wednesday 22 June 2016 09:11:55 martinproinity wrote: > I already did. Is there something specific I should look after in that debug > log? > > Here a little extract (note: I replaced the request with ): > [..] I need the full log since the moment when the socket was created and till the

RE:[module dev] PCRE compiled code lost at reload

2016-06-22 Thread MAGNIEN, Thierry
Hi Maxim, Thanks for your response. I already saw that, and that's why I use a dedicated pool in shared memory for regex compilation. All my ngx_regex_compile_t structs allocate from this unique pool. Could pool in shared memory be automatically freed when reloading ? And in that case, why

Re: [module dev] PCRE compiled code lost at reload

2016-06-22 Thread Maxim Dounin
Hello! On Wed, Jun 22, 2016 at 09:31:12AM +, MAGNIEN, Thierry wrote: > I'm experiencing a strange behavior and I wonder if I'm missing > something obvious... > > I've developed a module and I use shared memory and slab > allocations to keep data unique across workers and have data >

Re: nginx core dump explodes

2016-06-22 Thread martinproinity
I already did. Is there something specific I should look after in that debug log? Here a little extract (note: I replaced the request with ): ... 2016/06/19 19:53:11 [debug] 8724#0: *19047 event timer: 63, old: 1466358851127, new: 1466358851267 2016/06/19 19:53:11 [debug] 8724#0: *19047 http

Re: Send Strict-Transport-Security header in 401 response

2016-06-22 Thread Thomas Glanzmann
Hello Francis, * Francis Daly [2016-06-19 11:57]: > http://nginx.org/r/add_header > That suggests that you can use an "always" parameter. > Is that appropriate in this case? yes, thank you a lot. That solved my problem. Cheers, Thomas

Re: nginx core dump explodes

2016-06-22 Thread Valentin V. Bartenev
On Tuesday 21 June 2016 16:00:53 martinproinity wrote: > The dump was 550GB large. So I guess the only explanation for this are the > accumulated keys_zone sizes. > > There are no third-party modules. We only see the leaks for specific HTTP/2 > traffic at every reload. > [..] Could you collect

Re: Где брать динамические модули?

2016-06-22 Thread Андрей Василишин
http://nginx.org/ru/linux_packages.html#dynmodules | В настоящее время следующие модули собираются как динамические | и поставляются в виде отдельных пакетов: | | nginx-module-geoip | nginx-module-image-filter | nginx-module-njs | nginx-module-perl | nginx-module-xslt

RE: [module dev] PCRE compiled code lost at reload

2016-06-22 Thread MAGNIEN, Thierry
Hi, My data are not located in a configuration file, all data can be updated in real-time without reloading. A single POST request triggers update of the information by the worker that handles the request and all workers can then use updated information simultaneously. There may be

Re: Где брать динамические модули?

2016-06-22 Thread Yuriy Medvedev
apt-cache search nginx 22 июня 2016 г. 11:56 AM пользователь "Валентин Бартенев" написал: > On Wednesday 22 June 2016 11:50:52 Андрей Василишин wrote: > > Устанавливаю самый обычный нгинкс с репозитория > > deb http://nginx.org/packages/mainline/debian/ wheezy nginx > > > > > >

Re: 403 Forbidden

2016-06-22 Thread Vasiliy P. Melnik
22 июня 2016 г., 12:44 пользователь misha_shar53 < nginx-fo...@forum.nginx.org> написал: > Что такое Selinux? > Что такое гугль ? ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: [module dev] PCRE compiled code lost at reload

2016-06-22 Thread Sergey Brester
A little bit off-topic, but which benefits you think, you will get using cross process compiled regexp? The compiling of regex is normally fast operation, that will be done only once (even jit), and can be done in each worker. What I cannot imagine, is the sharing of the result of regexp

Re: 403 Forbidden

2016-06-22 Thread misha_shar53
Что такое Selinux? Posted at Nginx Forum: https://forum.nginx.org/read.php?21,119063,267762#msg-267762 ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: 403 Forbidden

2016-06-22 Thread Maksim Kulik
Selinux включен? 22 июня 2016 г., 12:04 пользователь misha_shar53 < nginx-fo...@forum.nginx.org> написал: > Система SUSE 42.1 из репозитариев установлен NGINX. Есть HTML файл который > я > пытаюсь открыть через NGINX. > http://localhost/htm/Term/term.html > В ответ получаю такое сообщение. 403

403 Forbidden

2016-06-22 Thread misha_shar53
Система SUSE 42.1 из репозитариев установлен NGINX. Есть HTML файл который я пытаюсь открыть через NGINX. http://localhost/htm/Term/term.html В ответ получаю такое сообщение. 403 Forbidden На файл все права разрешены. Он находится в моем домашнем каталоге. Почему запрещен доступ к этому файлу у

Где брать динамические модули?

2016-06-22 Thread Андрей Василишин
Устанавливаю самый обычный нгинкс с репозитория deb http://nginx.org/packages/mainline/debian/ wheezy nginx # nginx -V nginx version: nginx/1.11.1 built by gcc 4.7.2 (Debian 4.7.2-5) built with OpenSSL 1.0.1e 11 Feb 2013 (running with OpenSSL 1.0.1t 3 May 2016) TLS SNI support enabled

[nginx] Stream: use ngx_pcalloc() in ngx_stream_proxy_bind().

2016-06-22 Thread Roman Arutyunyan
details: http://hg.nginx.org/nginx/rev/4a724d6006ee branches: changeset: 6598:4a724d6006ee user: Roman Arutyunyan date: Wed Jun 22 11:50:02 2016 +0300 description: Stream: use ngx_pcalloc() in ngx_stream_proxy_bind(). diffstat: src/stream/ngx_stream_proxy_module.c

[nginx] Style.

2016-06-22 Thread Roman Arutyunyan
details: http://hg.nginx.org/nginx/rev/191e23214dfb branches: changeset: 6599:191e23214dfb user: Roman Arutyunyan date: Wed Jun 22 11:50:02 2016 +0300 description: Style. diffstat: src/stream/ngx_stream_proxy_module.c | 1 - 1 files changed, 0 insertions(+), 1

Re: Segmentation fault with default init.d

2016-06-22 Thread Aleksandar Lazic
Hi J B, Am 21-06-2016 17:59, schrieb J B: I installed nginx-extras and passenger from Phusion PPA and received the following error. /etc/init.d/nginx: line 46: 32069 Segmentation fault (core dumped) start-stop-daemon --start --quiet --pidfile $PID --exec $DAEMON -- $DAEMON_OPTS 2>