nginxでbasic認証
まず、htpasswdコマンドが入っていないので、別途インストール
apt-get install apache2-utils
nginxのコンフィグディレクトリにパスワードファイルを作成
cd /etc/nginx /usr/bin/htpasswd -c htpasswd <ユーザー名>
まず、htpasswdコマンドが入っていないので、別途インストール
apt-get install apache2-utils
nginxのコンフィグディレクトリにパスワードファイルを作成
cd /etc/nginx /usr/bin/htpasswd -c htpasswd <ユーザー名>