酒日記

2002 03 18

Mon, 18 Mar 2002

一番絞り 黒 (5.5% × 350 ml)


モルツ (5% × 1000 ml)

Apache の mod_auth_cookie 覚え書き。

mod_auth_cookie を有効にしたければ、他の mod_auth_* モジュールをロードした後に mod_auth_cookie をロードしなくてはならない。

具体的には httpd.conf に、

LoadModule cookie_auth_module libexec/mod_auth_cookie.so
LoadModule auth_pgsql_module  libexec/mod_auth_pgsql.so
(中略)
AddModule mod_auth_cookie.c
AddModule mod_auth_pgsql.c

としてはダメで、

LoadModule auth_pgsql_module  libexec/mod_auth_pgsql.so
LoadModule cookie_auth_module libexec/mod_auth_cookie.so
(中略)
AddModule mod_auth_pgsql.c
AddModule mod_auth_cookie.c                                                                                

とする。

先に mod_auth_cookie がインストールされている環境に mod_auth_pgsql を APXS でインストールしたら、 LoadModule AddModule をそれぞれ最下行に追加してくれちゃったので不具合発生。

ってこれ、mod_auth_cookie の README に、

For this to work, mod_auth_cookies must be listed at the end of the modules list (after all other mod_auth_* modules you might want to use with it).
と書いてあることなのだが。トラブルが起きてから README を読んでるようではダメですな。


powered by blosxom