2006年10月11日

apache2.2のAuthUserFileディレクティブ

livedoorClipに登録 | このエントリーをはてなブックマークに追加 | del.icio.usに登録 | MM/Memoに登録

apache2.0からapache2.2へ入れ替えた時の影響


$ /usr/sbin/apache2ctl configtest
Syntax error on line 31 of /etc/apache2/sites-enabled/hoge.hansode.org:
Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration


何?!


$ for i in /usr/lib/apache2/modules/*; do strings $i | grep -q -i AuthUser && echo $i; done
/usr/lib/apache2/modules/mod_authn_file.so
$ ls /etc/apache2/mods-available/authn_file.load
/etc/apache2/mods-available/authn_file.load


なるほど


$ sudo /usr/sbin/a2enmod authn_file
Module authn_file installed; run /etc/init.d/apache2 force-reload to enable.
$ /usr/sbin/apache2ctl configtest
Syntax OK


別モジュールになっていた。


半袖 at 12:25│Comments(0)TrackBack(0)Debian 

トラックバックURL

この記事にコメントする

名前:
URL:
  情報を記憶: 評価: 顔