
How to disable directory listing and restrict files/directory in Apache
1. Disable directory listing in Apache Configuration Open the apache configuration file /etc/httpd/conf/httpd.conf. vim /etc/httpd/conf/httpd.conf Find the content below in a file and modify the highlighted content. Read more