Welcome! Log In Create A New Profile

Advanced

Keepalive и auth_request

December 16, 2015 05:23AM
Добрый день.

Подскажите, пожалуйста, есть ли возможность заставить модуль auth_request использовать keepalive подключения к апстриму (nginx 1.9.7)?
Сейчас я вижу что nginx после получения ответа от апстрима сразу присылает fin пакет.
Апстрим keepalive умеет, подключение не закрывает, Connection: close не выдает.

Спасибо.


Конфигурация примерно такая:

upstream myauth1 {
server 127.0.0.1:9001 ;
keepalive 60;
}

location / {
auth_request /myauth;
proxy_pass http://127.0.0.1:8080;
}

location = /myauth {
proxy_pass http://myiauth1;
proxy_pass_request_body off;
rewrite ^ / break;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Content-Length "";
}
Subject Author Posted

Keepalive и auth_request

leksunin December 16, 2015 05:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready