すぐ忘れるのでメモ。
htpasswd -c ファイル名 ユーザ名
後はパスワードを設定するだけ。
そしてプロジェクトディレクトリ直下の.htaccessに記述してあげる。
AuthType Basic
AuthName "Input your ID and Password."
AuthUserFile /file/dir/passfile.dat
require valid-user
More than 5 years have passed since last update.
すぐ忘れるのでメモ。
htpasswd -c ファイル名 ユーザ名
後はパスワードを設定するだけ。
そしてプロジェクトディレクトリ直下の.htaccessに記述してあげる。
AuthType Basic
AuthName "Input your ID and Password."
AuthUserFile /file/dir/passfile.dat
require valid-user
Register as a new user and use Qiita more conveniently