« perl学習のtimeline | Home | 大掃除作戦:その後 »

May 20, 2006

ベーシック認証 on windows apache

ウチのwin機のウェブサーバに、.htaccessファイルを置いてベーシック認証をかけようとしたのだが、何故か上手くいかない。色々調べた結果、以下のことについて分かった。

・パスにスペースが含まれる場合などの必要な場合、apacheのdirectiveではダブルクォートで文字列をまとめることが出来る。基本的なことだが、ふと上手くいかなかったときに不安になるのでメモ。

・windows版のapacheでは、AuthUserFileで指定したファイルに含まれるパスワードの暗号化にはcrypt()ではなく、MD5を使用する。

・MD5のルーチンは用意する必要は無い。認証ファイル作成用プログラムがapacheのパッケージに含まれている。apacheのインストールディレクトリ/bin/htpasswd.exeをコマンドラインから起動する。

No TrackBacks

TrackBack URL: http://aklaswad.com/cgi-bin/mt/mt-tb.cgi/44

Leave a comment

OpenID accepted here Learn more about OpenID

About this Entry

This page contains a single entry by aklaswad published on May 20, 2006 9:50 AM.

perl学習のtimeline was the previous entry in this blog.

大掃除作戦:その後 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.