代码之家  ›  专栏  ›  技术社区  ›  duong_dajgja

如何在Apache2.4中启用Content-MD5标记

  •  0
  • duong_dajgja  · 技术社区  · 7 年前

    我刚装了个鞋底 Apache 2.4 (无任何其他模块,如 Php 或者其他什么)并打算在其上托管静态文件。静态文件放在 /var/www/html/test-files/ core ContentDigest Apache2 Core

    1. 创建 .htaccess 在下面 /var/www/html/test文件/ ContentDigest On 到文件。

    2. /etc/apache2/apache2.conf 并添加了以下内容: <Directory /var/www/html/test-files/> 内容摘要打开 </Directory>

    .html mp4 但看不到任何文件 Content-MD5 标题中包含的标记。

    我弄错什么了吗?如何启用标记?

    1 回复  |  直到 6 年前
        1
  •  0
  •   duong_dajgja    7 年前

    禁用 mod_deflate :

    sudo a2dismod deflate
    sudo service apache2 restart