Make sure to disable following methods in webserver.
# Disabled TRACE|TRACK|PUT|OPTIONS|DELETE|HEAD <Directory /var/www/html > AuthType None Satisfy Any Allow from all RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|PUT|OPTIONS|DELETE|HEAD) RewriteRule .*$ - [F,L] </Directory>
Make sure none of the configuration files get printed as pain text.
<FilesMatch ".+(\.pm|\.conf|\.htaccess|\.gitignore|config)$"> Require all denied </FilesMatch>
Disable all files and folder start with .dot
<DirectoryMatch "^\.|\/\."> Require all denied </DirectoryMatch> <LocationMatch "\/\."> Require all denied </LocationMatch>