Reference links
https://www.jianshu.com/p/1c0691c9ad3c
auth_basic_user_file required password can be generated by the following method
1)安装htpasswd (yum install httpd-tools)
htpasswd -c password_file login_user #password_file is generated out for a username password file login_user
enter password
Enter the password again
auth_basic_user_file colon format is user password
Such as:
login_user:NJYBTUGwR33
2) generates a password openssl
openssl passwd
enter password
Enter the password again
Out of a piece of encrypted gibberish
Create a file, the file content such as: login_user: NJYBTUGwR33