[nginx] Fixed ngx_pid_t formatting in ngx_sprintf() and logging.

2016-03-30 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/2b7dacb381ed branches: changeset: 6482:2b7dacb381ed user: Sergey Kandaurov date: Thu Mar 31 02:34:04 2016 +0300 description: Fixed ngx_pid_t formatting in ngx_sprintf() and logging. diffstat: src/os/unix/ngx_process.c

[nginx] Fixed logging.

2016-03-30 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/f01ab2dbcfdc branches: changeset: 6480:f01ab2dbcfdc user: Sergey Kandaurov date: Thu Mar 31 02:33:57 2016 +0300 description: Fixed logging. diffstat: src/core/nginx.c| 2 +-

[nginx] Fixed logging with variable field width.

2016-03-30 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/3ef7bb882ad4 branches: changeset: 6478:3ef7bb882ad4 user: Sergey Kandaurov date: Thu Mar 31 02:33:53 2016 +0300 description: Fixed logging with variable field width. diffstat: src/core/ngx_resolver.c| 2 +-

[nginx] Events: fixed logging.

2016-03-30 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/dc92298b1852 branches: changeset: 6479:dc92298b1852 user: Sergey Kandaurov date: Thu Mar 31 02:33:55 2016 +0300 description: Events: fixed logging. diffstat: src/event/modules/ngx_eventport_module.c | 8

[nginx] Fixed logging in close error handling.

2016-03-30 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/47daf95d0138 branches: changeset: 6477:47daf95d0138 user: Sergey Kandaurov date: Thu Mar 31 02:33:50 2016 +0300 description: Fixed logging in close error handling. diffstat: src/core/ngx_open_file_cache.c

Re: nginx fastcgi_cache и Vary headers

2016-03-30 Thread Alex Vasilenko
Максим, Стыдно признать, но вы оказались полностью правы. Cache-Control с Expires был в fastcgi_ignore_headers. А Vary в ответе был еще один, который собственно перезатирал предыдущие. Как я могу указать несколько заголовков с Vary в таком случае? Vary: Accept-Language, X-Authentication (через

Nginx configuration

2016-03-30 Thread marcosbontempo
Hello, I need to create a web interface to configure my nginx reverse proxy. I only know how to configure nginx with the configuration file. Is there another way to change the configurations, like a REST API, so I can make it dynamically? Any tip will be very helpful, Thanks. Posted at Nginx

Re: nginx fastcgi_cache и Vary headers

2016-03-30 Thread Maxim Dounin
Hello! On Wed, Mar 30, 2016 at 09:41:59PM +0300, Andrey Kopeyko wrote: > On Wed, 30 Mar 2016, Alex Vasilenko wrote: [...] > >Собственно и Cache-Control и Vary > >заголовки игнорируются, кэшируется на минуту с первым попавшим языком. > > Вот здесь вы близки к пониманию происходящего, и к

Re: nginx fastcgi_cache и Vary headers

2016-03-30 Thread Andrey Kopeyko
On Wed, 30 Mar 2016, Alex Vasilenko wrote: Приветствую! Добрый вечер, Alex! Есть контент, который кэшируется директивами fastcgi_cache: ... Цель - кэшировать ответы в зависимости от языка в запросе Accept-Language Собственно ответ следующего вида: ^ Вот тут у вас

nginx fastcgi_cache и Vary headers

2016-03-30 Thread Alex Vasilenko
Приветствую! Есть контент, который кэшируется директивами fastcgi_cache: > fastcgi_cache_path /var/cache/nginx/api_cache levels=1:2 keys_zone=api_cache:50m max_size=1000m inactive=600m; > fastcgi_cache api_cache; > fastcgi_cache_valid 200 1m; > fastcgi_cache_use_stale error timeout

Re: $upstream_http_NAME and $sent_http_NAME vars not available in certain scopes

2016-03-30 Thread Maxim Dounin
Hello! On Wed, Mar 30, 2016 at 07:11:45AM -0400, neilstuartcraig wrote: > Hi all > > I am developing a proxy service which uses NGINX to reverse proxy, kind of > CDN-like but very specific to our needs. During this. I have hit an issue > which I *think* is a bug but wanted to ask in case anyone

Re: $upstream_http_NAME and $sent_http_NAME vars not available in certain scopes

2016-03-30 Thread neilstuartcraig
Also, for info: nginx -V nginx version: nginx/1.9.13 built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/current/nginx.conf --pid-path=/var/run/nginx.pid

Re: $upstream_http_NAME and $sent_http_NAME vars not available in certain scopes

2016-03-30 Thread neilstuartcraig
Also, for info: nginx -V nginx version: nginx/1.9.13 built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/current/nginx.conf --pid-path=/var/run/nginx.pid

Re: multiple named captures in map regex

2016-03-30 Thread Cole Tierney
Thank you, Francis! That’s great. Cole > On Mon, Mar 28, 2016 at 11:30:32PM -0400, Cole Tierney wrote: > > Hi there, > > > Is it possible to have more than one named capture in a map regex? > > In a map regex, yes. > > In a "value" part of a map, no. > > http://nginx.org/r/map

$upstream_http_NAME and $sent_http_NAME vars not available in certain scopes

2016-03-30 Thread neilstuartcraig
Hi all I am developing a proxy service which uses NGINX to reverse proxy, kind of CDN-like but very specific to our needs. During this. I have hit an issue which I *think* is a bug but wanted to ask in case anyone can point to a solution or some reading I can do. The problem I have is this:

Re: nginx counterpart of haproxy's acl dst

2016-03-30 Thread Aleksandar Lazic
Hi. Am 30-03-2016 10:24, schrieb Alexey S: Hi, does nginx have a variable, that represents the destination IP address and port, like it was seen/used by the client at the connection time? Could you mean http://nginx.org/en/docs/http/ngx_http_upstream_module.html#var_upstream_addr Cheers

[nginx] Fixed mistranslated phrase.

2016-03-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/5511e846dfc7 branches: changeset: 6476:5511e846dfc7 user: Ruslan Ermilov date: Wed Mar 30 12:07:19 2016 +0300 description: Fixed mistranslated phrase. diffstat: docs/xml/nginx/changes.xml | 2 +- 1 files changed, 1

[nginx] Style.

2016-03-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/2cd019520210 branches: changeset: 6474:2cd019520210 user: Ruslan Ermilov date: Wed Mar 30 11:52:16 2016 +0300 description: Style. diffstat: src/core/ngx_conf_file.c | 6 +-

[nginx] Events: fixed test building with eventport on OS X.

2016-03-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/7d6970ba5209 branches: changeset: 6475:7d6970ba5209 user: Ruslan Ermilov date: Wed Mar 30 11:57:28 2016 +0300 description: Events: fixed test building with eventport on OS X. Broken in d17f0584006f (1.9.13). diffstat:

[nginx] Version bump.

2016-03-30 Thread Ruslan Ermilov
details: http://hg.nginx.org/nginx/rev/9d7326d3f474 branches: changeset: 6473:9d7326d3f474 user: Ruslan Ermilov date: Wed Mar 30 11:52:07 2016 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

nginx counterpart of haproxy's acl dst

2016-03-30 Thread Alexey S
Hi, does nginx have a variable, that represents the destination IP address and port, like it was seen/used by the client at the connection time? Thank you. WBR, Alexey ___ nginx mailing list nginx@nginx.org

pcre2

2016-03-30 Thread gitl
Are there any plans to move from pcre (8.x) to pcre2 (10.x)? I realize that the API changed quite a bit but it would be awesome if there was a migration plan for it. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265726,265726#msg-265726