edit file /etc/httpd/conf/httpd.conf
search "htaccess", changed below setting to
AllowOverride All
2. go to folder that will disable folder listing
create file .htaccess
add this content:
IndexIgnore *
3. Restart Apache
service httpd restart
Reference:
http://www.cyberciti.biz/faq/apache-web-server-prevent-directory-folder-listing/
http://www.cyberciti.biz/faq/apache-htaccess/
沒有留言:
張貼留言