eagles051387 wrote:I found a great link to harden apache, but I am curious could it cause any problems with vesta and apache itself?
Document root Directory: /var/www/html or /var/www
Oh YEAH! With this settings you get too much troubles.
1. hide Apache Version and OS Identity from Errors
safe
2. Disable Directory Listing
safe
3. Keep updating Apache Regularly
safe
4. Disable Unnecessary Modules
be careful with this
5. Run Apache as separate User and Group
not safe, be careful... apache2 already run from www-data
6. Use Allow and Deny to Restrict access to Directories
safe, I think
7. Use mod_security and mod_evasive Modules to Secure Apache
safe, but in Vesta you have firewall, file2ban and nginx...
8. Disable Apache’s following of Symbolic Links
safe
9. Turn off Server Side Includes and CGI Execution
safe
10. Limit Request Size
safe, but you already have nginx to limit this - limit body size option
11. Protect DDOS attacks and Hardening
safe, but you have lmit connection by yourself in nginx config
12. Enable Apache Logging
already there )
13. Securing Apache with SSL Certificates
ehm... ok
For security you can use BASEDIR template ^_^