[root@kvm8 ~]# vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html"> Options -Indexes +FollowSymLinks AllowOverride None Require all granted </Directory>
[root@kvm5 ~]# cd /var/www/html/inx/ [root@kvm5 inx]# ln -s ../index.html index.html [root@kvm5 inx]# ll total 8 -rw-r--r--. 1 root root 11 May 23 00:32 i.html -rw-r--r--. 1 root root 11 May 23 00:33 ijk.html lrwxrwxrwx. 1 root root 13 May 23 01:03 index.html -> ../index.html
[root@kvm5 html]# curl -s http://kvm5.deyu.wang/inx/ | sed -e 's/<[^>]*>//g' -e '/^$/d' kvmweb
[root@kvm8 ~]# vim /etc/httpd/conf/httpd.conf <Directory "/var/www/html"> Options -Indexes -FollowSymLinks AllowOverride None Require all granted </Directory>
[root@kvm5 inx]# systemctl reload httpd.service
[root@kvm5 inx]# curl -s http://kvm5.deyu.wang/inx/ | sed -e 's/<[^>]*>//g' -e '/^$/d' 403 Forbidden Forbidden You don't have permission to access /inx/ on this server.