您的位置:首页 > 其它

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

2017-10-29 12:11 1106 查看
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 即可解决这个问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐