zoukankan      html  css  js  c++  java
  • .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

    php项目 .htaccess文件配置如下:

    #文件缓存时间配置
    <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css)$">
        Header set Cache-Control "max-age=600"
    </FilesMatch>
    

    .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration

    信息提示  有模块丢失。

    解决办法:

    在Apache的配置文件 httpd.conf 中开启(去掉前面的#)  LoadModule headers_module modules/mod_headers.so  即可解决这个问题。

  • 相关阅读:
    数据库查找
    关于购买功能的相关学习
    信息登记功能例子
    总结
    团队作业
    团队作业
    团队作业
    团队作业
    团队作业
    第一节:库的管理
  • 原文地址:https://www.cnblogs.com/itslives-com/p/htaccess_Header.html
Copyright © 2011-2022 走看看