5丁目通信(仮称)

とある5丁目で活動する還暦を過ぎたWebプログラマーの覚え書きです。それとかかってくる迷惑電話や、家業のアパート経営について。

ApacheのDigest認証の設定で嵌まった話し

メンバーだけにしかサイトを見えないように認証をするように設定した。今回はBasic認証ではなくてDigest認証にしてみた。

あるサイトの情報を真似て(コピペとも言う)設定した。しかし、アクセスするとInternal Errorになる。

いろいろ調べてみると、Apacheが2.0と2.2とかそれ以前だと、Digest認証のhtaccessの書き方が変わっていた。2.2だとAuthDigestFileではなくてAuthUserFileにしないといけなかった。

つまり、人のサイトを丸写しではなくて、ちゃんとマニュアルなりリファレンスを読めよ、ということだった。自戒を込めて。

Google+: View post on Google+

著:大竹 龍史, 著:山本 道子
¥1,639 (2025/11/20 14:08時点 | Amazon調べ)
著:Piro, 編集:日経Linux
¥2,178 (2025/11/22 22:20時点 | Amazon調べ)
著:三宅 英明, 著:大角 祐介
¥2,970 (2025/11/21 13:04時点 | Amazon調べ)

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny