![无效命令“AuthAuthoritative”](https://linux22.com/image/109998/%E6%97%A0%E6%95%88%E5%91%BD%E4%BB%A4%E2%80%9CAuthAuthoritative%E2%80%9D.png)
我正在尝试启动 Apache2 服务器,但收到此错误:
Invalid command 'AuthAuthoritative', perhaps misspelled or defined by a module not included in the server...iguration
这是以下配置httpd.conf
:
AllowOverride all
Satisfy any
AuthAuthoritative on
AuthUserFile /home/netmet/netMet/etc/apache.passwd
AuthGroupFile /home/netmet/netMet/etc/apache.group
AuthName "netMET access's"
AuthType Basic
require group netmet netmet-cgi
order deny,allow
deny from all
allow from host.domain.fr
答案1
记得加载mod_auth
。如果你使用一些有的发行版a2enmod
,那就是了a2enmod auth
。