create .htpasswd file for basic authentication

GOAL

Basic 認証で使用する .htpasswd ファイルの作成

Create .htpasswd file for use with Basic authentication

ENVIRONMENT

  • apache2.4

PARAMETER

create option
PARAM_01:


.htpasswd file full path
PARAM_02:
user account
PARAM_03:
user password
PARAM_04:

CODE

Enter password inline

htpasswd [PARAM_01] [PARAM_02]/.htpasswd [PARAM_03] [PARAM_04]

Enter password interactively

htpasswd [PARAM_01] [PARAM_02]/.htpasswd [PARAM_03]

NOTICE

インラインでパスワードを打ち込む際は、シェルの履歴にパスワードが記録される点に注意する

When typing passwords inline, note that the password is recorded in the shell history.


投稿日

カテゴリー:

,

投稿者:

タグ: