[root@kvm5 ~]# mkdir /var/www/html/confidential
[root@kvm5 ~]# wget http://dywang.csie.cyut.edu.tw/materials/private.html \ -O /var/www/html/confidential/index.html
[root@kvm5 ~]# vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html/confidential"> #Require host kvm5.deyu.wang Require ip 192.168.122.5 </Directory>
[root@kvm5 ~]# systemctl reload httpd.service
[root@kvm5 ~]# curl http://kvm5.deyu.wang/confidential/ private test
[root@kvm7 ~]# curl http://kvm5.deyu.wang/confidential/ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /confidential/ on this server.</p> </body></html>