15
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ApacheでBasic認証をするhtpasswdのコマンド

Posted at

htpasswdはBasic認証を利用してページのアクセスを制限をするコマンド。

ユーザの追加 (初回)


# htpasswd -c 保存先 ユーザ名

$ htpasswd -c /foo/.htpasswd user1


ユーザの追加(2回目以降)


# htpasswd 保存先 ユーザ名

$ htpasswd /foo/.htpasswd user2


ユーザの削除


# htpasswd -D 保存先 ユーザ名
$ htpasswd -D /foo/.htpasswd user1

参考

htpasswd - Manage user files for basic authentication - Apache HTTP Server Version 2.4

15
9
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
15
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?