20 ways to secure Apache
Posted June 21st, 2006
in
These steps are from Pete Freitag's Homepage.
- First, make sure you've installed latest security patches.
- Hide the Apache Version number, and other sensitive information.
- Make sure apache is running under its own user account and group.
- Ensure that files outside the web root are not served.
- Turn off directory browsing.
- Turn off server side includes.
- Turn off CGI execution.
- Don't allow apache to follow symbolic links.
- Turn off multiple Options.
- Turn off support for .htaccess files.
- Run mod_security.
- Disable any unnecessary modules
- Make sure only root has read access to apache's config and binaries.
- Lower the Timeout value.
- Limit large requests.
- Limit the size of an XML Body.
- Limit Concurrency.
- Restrict Access by IP.
- Adjust KeepAlive settings.
- Run Apache in a Chroot environment.