Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的一台服务器$_SERVER['HTTP_CONNECTION']设置为close需要keep-alive在我的 phpinfo() 中设置它,知道在哪里更改吗?
$_SERVER['HTTP_CONNECTION']
close
keep-alive
Apache 配置有
KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 100
难道我做错了什么?
$_SERVER['HTTP_CONNECTION']是客户端作为请求的一部分发送的 HTTPConnection标头的值。它不是服务器设置。您不能更改它,也不能强制客户端在该标头中发送另一个值。这取决于客户。
Connection
Connection 的内容:当前请求的标头,如果有的话。