首页 > 数据库技术 > 详细

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

时间:2017-10-29 13:21:05      阅读:432      评论:0      收藏:0      [点我收藏+]

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  即可解决这个问题。

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

原文:http://www.cnblogs.com/itslives-com/p/htaccess_Header.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!