提问人:duong_dajgja 提问时间:10/18/2018 最后编辑:duong_dajgja 更新时间:10/22/2018 访问量:629
如何在 Apache 2.4 中启用 Content-MD5 标签
How to enable Content-MD5 tag in Apache 2.4
问:
我刚刚安装了一个鞋底(没有任何其他模块或其他模块)并打算在其上托管静态文件。静态文件位于 下。我尝试通过两种方式启用(由 Apache2 Core 的 Apache2 记录):Apache 2.4
Php
/var/www/html/test-files/
core
ContentDigest
在文件下创建并添加到文件中。
.htaccess
/var/www/html/test-files/
ContentDigest On
编辑并添加了以下内容:
/etc/apache2/apache2.conf
<Directory /var/www/html/test-files/>
ContentDigest On
</Directory>
我使用 Google Chrome 的检查功能来测试下载一些文件,但看不到标题中包含任何标签。.html
mp4
Content-MD5
注意:所有配置都是默认的。
我在这里误解了什么吗?如何启用标签?
答:
1赞
duong_dajgja
10/18/2018
#1
我确实通过使用第二种方法加禁用来解决问题:mod_deflate
sudo a2dismod deflate
sudo service apache2 restart
评论