In this tutorial I will show you how to secure root directory.
The root directory of server containing all the important files therefore its always better to restrict the root directory access from the browser. To Secure root directory refer to the following steps.
Open the servers main Apache configuration file and add the following code and restart the Apache web service.
1st) Open /etc/httpd/conf/httpd.conf file
2nd) Add the code
Deny from all
3rd) Restart the Apache web service
service httpd restart