as-salam.
How to Disable Directory Browsing on Website : this is for my own referrence, the original write-up at ehowstuff, thank you for the owner who write the solution and share it.
Here are the solution :
There are two ways to disable or turn off the directory browsing in on your linux server. The main reason for this is to secure your websites and prevent anyone from simply access your installation folders and directories. If the directories or files are exposed to view, this will bring serious security risk.
Follow below steps to disable directory browsing:
1. Turn off directory browsing using httpd.conf:-
–>Open your httpd.conf, vi /etc/httpd/conf/httpd.conf
–>on your Virtual Host and your documentroot setting, find “Options Indexes”
–>Modify exisitng Indexes to -Indexes if any. Else add the Options -Indexes
–>Restart your apache server
/sbin/service httpd restart
–>Finish
Options All -Indexes
note :
How To Start, Stop, Restart And Check The Status Of Apache And MySQL On Centos
How to Start Apache
/etc/init.d/httpd start
How to Stop Apache
/etc/init.d/httpd stop
How to Restart Apache
/etc/init.d/httpd restart
refer to oginal write up at mixeduperic.com
How to Check apache version
httpd -v
another tips on security :
http://www.tecmint.com/apache-security-tips/
No comments:
Post a Comment