在 .htaccess 中使用 keep-alive 功能 [英] Using keep-alive feature in .htaccess

查看:33
本文介绍了在 .htaccess 中使用 keep-alive 功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 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 中使用 keep-alive 功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆