sudo apt-get update sudo sh -c "echo -n 'myuser:' >> /etc/nginx/.htpasswd" sudo sh -c "openssl passwd -apr1 >> /etc/nginx/.htpasswd"
cat /etc/nginx/.htpasswd
masukkan code di bawah
# /etc/nginx/site-enabled/default location / { # ... auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/.htpasswd; }
service nginx restart
There was an error while loading. Please reload this page.