我在我的httpd.conf中为IE设置了以下设置:
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
我想将这个应用到我的服务器上的所有请求。
处理keep alive的httpd.conf部分如下所示:
# # Timeout: The number of seconds before receives and sends time out. # Timeout 5 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to "Off" to deactivate. # KeepAlive Off # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 1 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 1
我该怎么做呢?
如果要禁用所有浏览器的HTTP保持活动状态,只需将KeepAlive设置为全局closures 。
如果你不需要的话,没有任何意义的浪费BrowserMatch资源,但是如果你真的想使用BrowserMatch来创build一个匹配任何东西的正则expression式。 ".*"是一个很好的例子。