注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

和申的个人主页

专注于java开发,1985wanggang

 
 
 

日志

 
 

Invalid command 'Header', perhaps mis-spelled or ', perhaps mis-spelled or d  

2011-12-12 16:43:32|  分类: 项目开发 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
    LoadModule vhost_alias_module /usr/alibaba/apache2/modules/mod_vhost_alias.so
    LoadModule log_config_module  /usr/alibaba/apache2/modules/mod_log_config.so
    LoadModule mime_module        /usr/alibaba/apache2/modules/mod_mime.so
    LoadModule include_module     /usr/alibaba/apache2/modules/mod_include.so
    LoadModule alias_module       /usr/alibaba/apache2/modules/mod_alias.so
    LoadModule rewrite_module     /usr/alibaba/apache2/modules/mod_rewrite.so
    LoadModule access_module      /usr/alibaba/apache2/modules/mod_access.so
    LoadModule auth_module        /usr/alibaba/apache2/modules/mod_auth.so
    LoadModule proxy_module       /usr/alibaba/apache2/modules/mod_proxy.so
    LoadModule proxy_http_module  /usr/alibaba/apache2/modules/mod_proxy_http.so
    LoadModule dir_module         /usr/alibaba/apache2/modules/mod_dir.so
    LoadModule deflate_module     /usr/alibaba/apache2/modules/mod_deflate.so
    LoadModule headers_module     /usr/alibaba/apache2/modules/mod_headers.so
    LoadModule setenvif_module    /usr/alibaba/apache2/modules/mod_setenvif.so

路径/usr/alibaba/apache2/modules为apache2的路径
也可以用locate察看
--------------------------------------------------------
Invalid command 'Header', perhaps mis-spelled or ', perhaps mis-spelled or d
    LoadModule vhost_alias_module /usr/alibaba/apache2/modules/mod_vhost_alias.so
    LoadModule log_config_module  /usr/alibaba/apache2/modules/mod_log_config.so
    LoadModule mime_module        /usr/alibaba/apache2/modules/mod_mime.so
    LoadModule include_module     /usr/alibaba/apache2/modules/mod_include.so
    LoadModule alias_module       /usr/alibaba/apache2/modules/mod_alias.so
    LoadModule rewrite_module     /usr/alibaba/apache2/modules/mod_rewrite.so
    LoadModule access_module      /usr/alibaba/apache2/modules/mod_access.so
    LoadModule auth_module        /usr/alibaba/apache2/modules/mod_auth.so
    LoadModule proxy_module       /usr/alibaba/apache2/modules/mod_proxy.so
    LoadModule proxy_http_module  /usr/alibaba/apache2/modules/mod_proxy_http.so
    LoadModule dir_module         /usr/alibaba/apache2/modules/mod_dir.so
    LoadModule deflate_module     /usr/alibaba/apache2/modules/mod_deflate.so
    LoadModule headers_module     /usr/alibaba/apache2/modules/mod_headers.so
    LoadModule setenvif_module    /usr/alibaba/apache2/modules/mod_setenvif.so
========================================================================================
========================================================================================


Apache 2的一些标准模块与出错信息汇总

原文链接: http://www.ixdba.net/a/web/apache/2010/1213/815.html

root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included
in the server configuration
                                                           [FAILED]
需添加:

LoadModule access_module /etc/httpd/modules/mod_access.so
LoadModule auth_module /etc/httpd/modules/mod_auth.so


[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 368 of /etc/httpd/conf/httpd.conf:
Invalid command 'UserDir', perhaps mis-spelled or defined by a module not includ
ed in the server configuration
                                                           [FAILED]
需添加:LoadModule userdir_module /etc/httpd/modules/mod_userdir.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 396 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryIndex', perhaps mis-spelled or defined by a module not
included in the server configuration
                                                           [FAILED]
需添加:LoadModule dir_module /etc/httpd/modules/mod_dir.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 419 of /etc/httpd/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not in
cluded in the server configuration
                                                           [FAILED]
需添加:LoadModule mime_module /etc/httpd/modules/mod_mime.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 491 of /etc/httpd/conf/httpd.conf:
Invalid command 'LogFormat', perhaps mis-spelled or defined by a module not incl
uded in the server configuration
                                                           [FAILED]
需添加:LoadModule log_config_module /etc/httpd/modules/mod_log_config.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 555 of /etc/httpd/conf/httpd.conf:
Invalid command 'Alias', perhaps mis-spelled or defined by a module not included
in the server configuration
                                                           [FAILED]
需添加:LoadModule alias_module /etc/httpd/modules/mod_alias.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 582 of /etc/httpd/conf/httpd.conf:
Invalid command 'SetEnvIf', perhaps mis-spelled or defined by a module not inclu
ded in the server configuration
                                                           [FAILED]
需添加:LoadModule setenvif_module /etc/httpd/modules/mod_setenvif.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 636 of /etc/httpd/conf/httpd.conf:
Invalid command 'IndexOptions', perhaps mis-spelled or defined by a module not i
ncluded in the server configuration
                                                           [FAILED]
需添加:LoadModule autoindex_module /etc/httpd/modules/mod_autoindex.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 784 of /etc/httpd/conf/httpd.conf:
Invalid command 'LanguagePriority', perhaps mis-spelled or defined by a module n
ot included in the server configuration
                                                           [FAILED]
需添加:LoadModule negotiation_module /etc/httpd/modules/mod_negotiation.so

[root@srv-2 modules]# /etc/init.d/httpd start
Starting httpd:                                            [  OK  ]
[root@srv-2 modules]#

  评论这张
 
阅读(1595)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016