问题描述
我想在Apache中使用 keep-alive
功能。我该如何使用我的主机(.htaccess文件)以及 KeepAliveTimeout
这样的参数的最佳值是什么?
I want to use the keep-alive
feature in Apache. How can I do this with my host (.htaccess file), and what are the best values for the parameters like KeepAliveTimeout
?
推荐答案
您无法控制 .htaccess
中的keepalive行为。 Keepalive是一项主机级别的功能,而不是其中一个目录可以根据每个目录的htaccess信息而有所不同的行为。
You can't control keepalive behaviour in an .htaccess
. Keepalives are a host-level feature, not one where different directories can behave differently depending on the per-directory htaccess info.
如果您使用的是基本共享主机仅允许您 .htaccess
来配置网站,则无法更改keepalive设置。大概托管公司会对其进行适当设置,或者只是将它们保留为默认设置,通常很好。
If you are on the kind of basic shared hosting that only gives you .htaccess
to configure your sites, you can't change the keepalive settings. Presumably the hosting company will have set them appropriately, or just left them on the default settings, which are usually fine.
这篇关于在.htaccess中使用保持活动功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!