【问题标题】:Why doesn't KeepAlive work in my .htaccess file?为什么 KeepAlive 在我的 .htaccess 文件中不起作用?
【发布时间】:2014-01-08 00:51:15
【问题描述】:

我试图将KeepAlive 指令添加到我的.htaccess 文件中,如下所示:

KeepAlive on
KeepAliveTimeout 15
MaxKeepAliveRequests 100

它所做的只是禁用该网站。

我假设,我必须在一些标签中插入该代码,但这些标签是什么?完整的代码sn-p应该是什么?

【问题讨论】:

    标签: apache keep-alive


    【解决方案1】:

    KeepAlive 仅在“服务器配置”中可用。这意味着您可以在全局服务器配置中进行设置,通常在 /etc/httpd/conf/httpd.conf 或 /etc/apache2/...

    查看文档,有解释每个配置参数的可用位置。

    http://httpd.apache.org/docs/current/mod/core.html

    【讨论】:

    猜你喜欢
    • 2017-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-24
    • 1970-01-01
    • 2012-02-17
    • 1970-01-01
    相关资源
    最近更新 更多