How to secure apache using .htaccess

.htaccess is used to protect directories within apache. In order to enable it, do the following Backup httpd.conf (etc/httpd/conf/) If…