Enable Basic Authentication to limit access on specific web pages.
 For example, set Basic Authentication setting under the directory [/var/www/html/auth-basic].
[[email protected] ~]# vi /etc/httpd/conf.d/auth_basic.conf
# create new
AuthName "Basic Authentication"
# add a user : create a new file with "-c" ("-c" is needed only for the initial regist)
[[email protected] ~]# htpasswd -c /etc/httpd/conf/.htpasswd future
New password: # set password
Re-type new password:
Adding password for user future
[[email protected] ~]# mkdir -p /var/www/html/auth-basic
[[email protected] ~]# echo "Test Page for Basic Auth" > /var/www/html/auth-basic/index.html
[[email protected] ~]# systemctl restart httpd
 Access to the test page from a client computer with a web browser. Then authentication is required like follows as a setting, answer with a user added in .
 Just accessed.