Welcome! Log In Create A New Profile

Advanced

proxy_socket_keepalive on;

December 10, 2018 06:53AM
В версии 1.15.6 появилась эта опция.

Вставляю в location - не работает.

Подозреваю что по аналогии с fastcgi_pass нужно вместо:

location @fallback {
proxy_pass http://127.0.0.1:8080;
proxy_socket_keepalive on;
}
Нужно так сделать:

upstream proxy_backend {
server 127.0.0.1:8080;
keepalive 32;
}

location / {
proxy_pass proxy_backend;
proxy_socket_keepalive on;
}

Правильно я понимаю ?
Subject Author Posted

proxy_socket_keepalive on;

suffix December 10, 2018 06:53AM

Re: proxy_socket_keepalive on;

Maxim Dounin December 10, 2018 08:38AM

Re: proxy_socket_keepalive on;

suffix December 11, 2018 03:54AM

Re: proxy_socket_keepalive on;

Oleg A. Mamontov December 11, 2018 05:44AM

Re: proxy_socket_keepalive on;

suffix December 11, 2018 06:25AM

Re: proxy_socket_keepalive on;

Maxim Konovalov December 11, 2018 06:34AM

Re: proxy_socket_keepalive on;

suffix December 11, 2018 09:42AM

Re: proxy_socket_keepalive on;

Maxim Dounin December 11, 2018 10:04AM

Re: proxy_socket_keepalive on;

suffix December 11, 2018 11:11PM

Re: proxy_socket_keepalive on;

Maxim Dounin December 12, 2018 07:56AM

Re: proxy_socket_keepalive on;

suffix December 12, 2018 08:40AM

Re: proxy_socket_keepalive on;

Maxim Dounin December 12, 2018 10:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready