разные значения fastcgi cache valid для разных запросов

2021-11-23 Thread alex123456
Привет! использую fastcgi_cache в nginx. появилась необходимость кешировать разные запросы на разное время столкнулся с тем что в директиву fastcgi_cache_valid нельзя передать переменную if ($request_uri ~* "/(api/1|api/2)") { set $no_cache 0; set $cache_valid 5m;

Re: [PATCH] HTTP/2: fixed sendfile() aio handling

2021-11-23 Thread Maxim Dounin
Hello! On Tue, Nov 23, 2021 at 10:44:00AM +0300, Sergey Kandaurov wrote: > > On 23 Nov 2021, at 06:12, Maxim Dounin wrote: > > > > On Thu, Nov 18, 2021 at 07:46:48PM +0300, Sergey Kandaurov wrote: > > > >>> On 16 Nov 2021, at 17:41, Maxim Dounin wrote: > >>> > >>> On Tue, Nov 16, 2021 at

Re: how Can I Cross Compile nginx web server for arm linux?

2021-11-23 Thread Francis Daly
On Tue, Nov 23, 2021 at 12:11:00AM -0500, vrezaei wrote: Hi there, > I have solved my problem by following instructions precisely. > https://programmer.help/blogs/cross-compiling-nginx-used-on-hi3536.html > it is a very good tutorial. Great that you found a recipe that compiles this version

Re: Enabling lua in Nginx 1.18.0

2021-11-23 Thread Francis Daly
On Tue, Nov 23, 2021 at 02:37:37PM +, BELUCHE Yannick wrote: Hi there, > $> nginx -t > nginx: [emerg] unknown directive "access_by_lua" in > /etc/nginx/nginx-lua-headers.conf:91 That form of message means that the matching module is not present in the running nginx. > However it seems by

RE: Enabling lua in Nginx 1.18.0

2021-11-23 Thread Thomas Ward
I misread your version sorry.  This needs a bug filed in Ubuntu as I think the Lua module being 'loaded' doesnt necessarily mean it works.  Unless someone has an easy fix for you, its possible this is a bug in that nginx version/lua module in the reposSent from my T-Mobile 5G Device

RE: Enabling lua in Nginx 1.18.0

2021-11-23 Thread Thomas Ward
nginx upstream has nothing to do with the NGINX packages in Ubuntu.The Lua module in Ubuntu was removed and dropped by the Server Team's decision that supporting it requires excess work into the future that they were not willing to support as well as additional modules like resty core just to

Enabling lua in Nginx 1.18.0

2021-11-23 Thread BELUCHE Yannick
Hello, I installed Nginx and Nginx-extra on an Ubuntu Focal 20.04.2 LTS server. I wanted to use access_by_lua directive and I got an error : $> nginx -t nginx: [emerg] unknown directive "access_by_lua" in /etc/nginx/nginx-lua-headers.conf:91 However it seems by typing nginx -V that the

nginx-quic :authority header not passed to $http_host

2021-11-23 Thread Underverse Underverse
When using http3 there's no $http_host variable, as there's no Host: header but :authority pseudo-header which is not passed to any $http_ variable. How I can get contents of :authority pseudo-header to pass it to my backend? ___ nginx-devel mailing

[nginx] SSL: $ssl_curve (ticket #2135).

2021-11-23 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/3443c02ca1d1 branches: changeset: 7973:3443c02ca1d1 user: Sergey Kandaurov date: Mon Nov 01 18:09:34 2021 +0300 description: SSL: $ssl_curve (ticket #2135). The variable contains a negotiated curve used for the handshake key exchange process.

[nginx] Version bump.

2021-11-23 Thread Sergey Kandaurov
details: https://hg.nginx.org/nginx/rev/284f03d6f154 branches: changeset: 7972:284f03d6f154 user: Sergey Kandaurov date: Tue Nov 23 12:52:43 2021 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14