mod_deflate 可以根据“主机”压缩输出吗?请求标头中的标头?
mod_deflate 可以根据请求标头中的“Host”标头压缩输出吗? 据我根据文档了解,通常是通过查看配置中的用户代理等来完成的。
我在文档中找不到任何例子说 -
If Host: header is x.y.z then do compression. Else don't do compression.
谢谢!
Can mod_deflate compress the output depending on the "Host" header in the Request Headers?
As far as I understand based on the documentation, it is usually done by looking at the User-Agent etc. in the configuration.
I could not find any example in doc that says -
If Host: header is x.y.z then do compression. Else don't do compression.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从手册中:
未测试,但“容器”应包含“”,因此只需将其仅放在那些 VH 中您想要提供压缩的响应。
From the manual:
Didn't test it, but "container" should include "<VirtualHost>", so just place it only in those VHs you want to deliver compressed responses.