LoginSignup
2
1

More than 5 years have passed since last update.

Basic認証でユーザを追加する

Posted at

Basic認証でユーザを追加するコマンドメモ。

前提

  • Apacheは/usr/local/apacheにインストールされている。
  • パスワードファイルは/usr/local/apache/htpasswd/userにある。
  • Apacheの設定ファイルにパスワードファイルを設置したディレクトリ(AuthUserFile)は記載されている。

コマンド

/usr/local/apache/bin/htpasswd /usr/local/apache/htpasswd/user ユーザ名 パスワード

オプション-cを付けると、パスワードファイルを新規作成し、同名のパスワードファイルがすでに存在する場合は、既存の内容が削除される。

2
1
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
2
1