.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文件配置如下:
.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 即可解决这个问题。
#文件缓存时间配置 <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 即可解决这个问题。
相关文章推荐
- [Ubuntu] Invalid command 'VirtualDocumentRoot', perhaps misspelled or defined by a module not included in the server configuration
- Apache Error: Invalid command ‘Allow’, perhaps misspelled or defined by a module not included in the server configuration
- .htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the
- nvalid command 'PythonPath', perhaps misspelled or defined by a module not included in the server co
- Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the ser
- Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the serv
- Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the ser
- elgg 安装启动apache2.4后报Invalid command 'order', perhaps misspelled or defined by a module not included
- Apache启动报错:Invalid command 'ProxyPass', perhaps misspelled or defined by a module not inclu ded in t
- Apache启动 报Invalid command 'order', perhaps misspelled or defined by a module not included
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- Module 'starter' is not available! You either misspelled the module name or forgot to load it.
- invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
- The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Uncaught Error: [$injector:nomod] Module 'xxx' is not available! You either misspelled the m
- mySql主从配置出错:The server is not configured as slave; fix in config file or with CHANGE MASTER TO
- Message BT123 - Target host or target server & is not defined in an operation type
- [BTS] Loading property information list by namespace failed or property not found in the list. Verify that the schema is deployed properly.
- The command could not be located because '/sbin' is not included in the PATH environment variable
- 关于创建FLex项目时候的 Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid.错误