在我的 httpd.conf 中有:
KeepAliveTimeout 1
Run Code Online (Sandbox Code Playgroud)
我试图在单个php 脚本(而不是整个服务器)中覆盖 Apache KeepAliveTimeout 设置,因此我有一个 php 脚本:
header("Keep-Alive: timeout=60, max=100");
Run Code Online (Sandbox Code Playgroud)
但似乎没有什么区别。我仍然收到回复:
Keep-Alive:timeout=1, max=50
Run Code Online (Sandbox Code Playgroud)
有什么想法如何解决这个问题吗?