Re: Disable keep_alive based on specific useragent

2014-11-16 Thread B.R.
Hello, ​ On Mon, Nov 17, 2014 at 7:16 AM, mex wrote: > map $http_user_agent $ios8_ua { > default 0; > "YOUR_REGEX_HERE" 1; > } > > and then use the evil IF: > > if ($ios_ua) { > keepalive_timout 0; > } > ​I would do even better by avoiding using 'if'​ ​ at all: map $http_user_

Re: Disable keep_alive based on specific useragent

2014-11-16 Thread mex
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

Disable keep_alive based on specific useragent

2014-11-16 Thread Robert Mueller
Due to a bug in iOS 8, I want to disable http keep-alive for all iOS 8 useragents for now. https://github.com/AFNetworking/AFNetworking/issues/2314 I can't see a way to do this in nginx at the moment. The docs for keep_alive disable only talk about msie6 and safari. http://nginx.org/en/docs/ht

Re: File '/usr/sbin/nginx' seems to be deleted

2014-11-16 Thread Maxim Dounin
Hello! On Sat, Nov 15, 2014 at 07:37:44AM -0500, khav wrote: > I did a nginx restart but the errors still here > > Nov 15 11:22:06 sv1 abrtd: Package 'nginx' isn't signed with proper key > Nov 15 11:22:06 sv1 abrtd: 'post-create' on > '/var/spool/abrt/ccpp-2014-11-15-11:21:50-44431' exited with

Re: Configurations strangeness - mistake or bug?

2014-11-16 Thread Gábor Kövesdán
On 2014.11.16. 10:57, mex wrote: please delete your browser-history for every browser, restart your nginx and test again. Thanks! It has solved the problem. So it old buggy configuration stuck in the cache of the browser. And surprisingly, two different wrong configurations in two different bro

Re: Configurations strangeness - mistake or bug?

2014-11-16 Thread mex
please delete your browser-history for every browser, restart your nginx and test again. cheers, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254825,254827#msg-254827 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org