Welcome! Log In Create A New Profile

Advanced

Re: Disable keep_alive based on specific useragent

mex
November 17, 2014 01:16AM
Hi Robert,

you could probably work around this issues with map / if:

map $http_user_agent $ios8_ua {
default 0;
"YOUR_REGEX_HERE" 1;
}

and then use the evil IF:

if ($ios_ua) {
keepalive_timout 0;
}




http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if
http://nginx.org/en/docs/http/ngx_http_map_module.html


cheers,


mex
Subject Author Posted

Disable keep_alive based on specific useragent

Robert Mueller November 16, 2014 11:54PM

Re: Disable keep_alive based on specific useragent

mex November 17, 2014 01:16AM

Re: Disable keep_alive based on specific useragent

B.R. November 17, 2014 01:44AM

Re: Disable keep_alive based on specific useragent

Robert Mueller November 17, 2014 11:26PM

Re: Disable keep_alive based on specific useragent

wandenberg November 18, 2014 06:26AM

Re: Disable keep_alive based on specific useragent

mex November 18, 2014 07:11AM

Re: Disable keep_alive based on specific useragent

Valentin V. Bartenev November 18, 2014 07:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready