Відповідь: Как убрать слеш / из начала $request uri

2021-03-25 Thread Dmytro Lavryk
rewrite ^/(.+) https://google.com/search?q=$1 redirect; Увімкнуто чт, 25 бер. 2021 22:59:30 +0200 maximkherson написав Приветсвую! Делаю редирект с локального хочта на гугл. В начальном запросе в браузере после / идёт поисковый запрос:

Re: запись ответа от сервиса в лог файл nginx

2021-03-25 Thread Alexey
Както так ? proxy_store /data/www/$uri/$request_id ? 25.03.2021 16:07, Vitaliy Okulov пишет: Я так понимаю что возникнут проблемы с уникальностью данных в зависимости от пользователя, запроса который он создает и т.д. чт, 25 мар. 2021 г. в 14:30, Илья Шипицин >:

[nginx] HTTP/2: improved handling of "keepalive_timeout 0".

2021-03-25 Thread Maxim Dounin
details: https://hg.nginx.org/nginx/rev/ade8160120c1 branches: changeset: 7805:ade8160120c1 user: Maxim Dounin date: Fri Mar 26 01:44:57 2021 +0300 description: HTTP/2: improved handling of "keepalive_timeout 0". Without explicit handling, a zero timer was actually added, leading

[nginx] Events: fixed expiration of timers in the past.

2021-03-25 Thread Maxim Dounin
details: https://hg.nginx.org/nginx/rev/2ed5d03c2d90 branches: changeset: 7806:2ed5d03c2d90 user: Maxim Dounin date: Fri Mar 26 01:44:59 2021 +0300 description: Events: fixed expiration of timers in the past. If, at the start of an event loop iteration, there are any timers in the

Как убрать слеш / из начала $request uri

2021-03-25 Thread maximkherson
Приветсвую! Делаю редирект с локального хочта на гугл. В начальном запросе в браузере после / идёт поисковый запрос: http://redirect.localhost/hello Далее происходит редирект на google.com/search?q= и проблема в том, что не знаю как добавить к этому адресу (google.com/search?q=) $request_uri без

rate limit by header or API key

2021-03-25 Thread Andy Meadows
using nginx open source, is there an option to provide a custom rate limit by user agent, http header value, or an API key? Looking for the best option to provide custom rate limits to named users, but the traffic is coming from unpredictable IP addresses.

[nginx-announce] unit-1.23.0

2021-03-25 Thread Valentin V. Bartenev
Hi, I'm glad to announce a new release of NGINX Unit. Nowadays, TLS is everywhere, while plain HTTP is almost nonexistent in the global network. We are fully aware of this trend and strive to simplify TLS configuration in Unit as much as possible. Frankly, there's still much to do, but the

Unit 1.23.0 release

2021-03-25 Thread Valentin V. Bartenev
Hi, I'm glad to announce a new release of NGINX Unit. Nowadays, TLS is everywhere, while plain HTTP is almost nonexistent in the global network. We are fully aware of this trend and strive to simplify TLS configuration in Unit as much as possible. Frankly, there's still much to do, but the

Re: запись ответа от сервиса в лог файл nginx

2021-03-25 Thread Vitaliy Okulov
Я так понимаю что возникнут проблемы с уникальностью данных в зависимости от пользователя, запроса который он создает и т.д. чт, 25 мар. 2021 г. в 14:30, Илья Шипицин : > proxy_store ? > > чт, 25 мар. 2021 г. в 14:50, Vitaliy Okulov : > >> Добрый день. >> Подскажите что можно сделать в ситуации

Re: запись ответа от сервиса в лог файл nginx

2021-03-25 Thread Илья Шипицин
proxy_store ? чт, 25 мар. 2021 г. в 14:50, Vitaliy Okulov : > Добрый день. > Подскажите что можно сделать в ситуации когда требуется писать в файл тело > ответа сервиса, попробовал вариант с обработкой в body_filter_by_lua, но > при больших телах ответа воркер блокируется и потребляет 100% CPU >

запись ответа от сервиса в лог файл nginx

2021-03-25 Thread Vitaliy Okulov
Добрый день. Подскажите что можно сделать в ситуации когда требуется писать в файл тело ответа сервиса, попробовал вариант с обработкой в body_filter_by_lua, но при больших телах ответа воркер блокируется и потребляет 100% CPU Какие еще варианты реализовать задачу на уровне nginx возможны?