LoginSignup
3
3

More than 5 years have passed since last update.

【Apache】Basic認証がうまく通らないときのメモ

Posted at

ものすごくはまったのでメモ。
Basic認証作成の記事はたくさん出ているので、割愛しますが
しっかりvirtualhostでhtpasswdも指定したり
設定など間違いないのに、そのサイトを開いてみると
確かにIDとパスを聞かれる。

でも正確なパスを入れてもまた聞かれる。
パスの暗号化もできている。

結果:
Apacheのモジュールがコメントアウトされていました。
LoadModule authz_user_module modules/mod_authz_user.so
こいつがコメントアウトされていると、正常に機能しないと。

ものすごく時間がかかったものの
先輩はさくっとクリアしてて、経験ってすごいと思いました。
以後、注意ですね。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3