当我尝试使用' 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,我读到订单是有效的命令,我的配置可能有问题,但我不知道在哪里看。有什么建议吗?
我的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>
答案 0 :(得分:0)
修改您的httpd.conf
并确保已加载mod_authz_host
模块。
答案 1 :(得分:0)
编辑我的httpd.conf并不是一个好主意。将此代码添加到httpd.conf时出现了新错误
LoadModule authz_host_module modules/mod_authz_host.so
解决了我的问题是下面的代码
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build rewrite_confs