【发布时间】:2015-02-27 01:31:17
【问题描述】:
当我尝试使用“service httpd restart”重新启动 httpd 时,出现以下错误:
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 10 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
我正在使用 apache 2.2 运行 Centos 6
我没有对我的 httpd-directories.conf 进行任何更改,并且我读到 Order 是有效的命令,并且我在其他地方的配置可能存在问题,但我不知道去哪里找。有什么建议吗?
我的 httpd-directories.conf 文件的开头:
<Directory />
Options All
AllowOverride All
</Directory>
<Directory /home>
AllowOverride All
Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
【问题讨论】:
-
- 确保在您的配置中加载了“mod_access_compat.so”模块,如下所示:“LoadModule access_compat_module modules/mod_access_compat.so”