Invalid command ‘AuthGroupFile’, perhaps misspelled or defined by a module not included in the server configuration

Apacheのベーシック認証の設置でInvalid command 'AuthGroupFile', perhaps misspelled or defined by a module not included in the server configurationというエラーが出たときの対処方です

結論:AuthGroupFile /dev/null行を削除かコメントアウトする

これだけです。別にこれなくても認証ききます。

[c]
AuthUserFile /フルパス/.htpasswd
#AuthGroupFile /dev/null ←このようにコメントアウトする
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
order deny,allow
[/c]

[c]
AuthUserFile /フルパス/.htpasswd
AuthName "Please enter your ID and password"
AuthType Basic
require valid-user
order deny,allow
[/c]

もう削除しちゃう。これで終わりです。

この記事に関する技術サポート・ご相談

「手順通りにいかない」「自社環境への構築を代行してほしい」など、
インフラ・サーバー周りでハマった際はお気軽にご相談ください。

相談・問い合わせフォームを開く

※ Googleフォームへ移動します(初回相談無料)

個人支援・寄付について

サイトラボでは個人支援・寄付を受けております。ご協力いただける方はお願いいたします。当サイトではビットコインで受け付けております。

  • ビットコイン:3LHnADwZwUbic2L45EnVJEykiG6KfbqrwS