LoginSignup
38
40

More than 5 years have passed since last update.

Apacheのいない環境で.htpasswdを作る

Posted at

IDがfoo、パスワードがbarな.htpasswdを作るには、

printf "foo:$(openssl passwd -crypt bar)\n" >> .htpasswd

とすればよい。
必要になるのはnginxでBasic認証させたい時とかかな。
わざわざApacheいれたくないしね('A`)y-~

38
40
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
38
40