Apache-Httpd

無效的命令“AuthAuthoritative”

  • March 3, 2018

我正在嘗試啟動 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

記得載入mod_auth。如果您使用一些具有的發行版a2enmod,那就是a2enmod auth.

引用自:https://unix.stackexchange.com/questions/360391