in my httpd.conf there is:
KeepAliveTimeout 1
I'm trying to override Apache KeepAliveTimeout setting in a single php script (not in the entire server) so I have a php script with:
header("Keep-Alive: timeout=60, max=100");
but it doesn't seem to make any difference. still I get in the response:
Keep-Alive:timeout=1, max=50
any ideas how to solve this?
Try setting it in the
.htaccess
file combined with aFilesMatch
directive. See this post.You can't do that. It's there in place for a valid reason.
Apache v2.2 Core Features
KeepAliveTimeout Directive
From RFC 2616, Section 14.10:
Related: What does “Connection: close” mean when used in the response message?