Sunday, September 28, 2008

Secure Your Apache

Once you start searching for a topic like "Securing Apache" or "Hardening Apache" you will get hundreds of results and everyone tries to set out his own security concerns. The fact is that not every recommendation applies to our environment but we need to study and take into consideration all possible approaches to secure our web server. Some of these guides are too much complicated and strict and some too mild!
The following is a very basic and reasonable list of things we have to do to bring minimum security to our Apache server. Of course, Server Hardening comes first!
  1. Hide the Apache Version number, and other sensitive information.
  2. Make sure Apache is running under its own user account and group.
  3. Ensure that files outside the web root are not served.
  4. Turn off directory browsing.
  5. Turn off server side includes.
  6. Turn off CGI execution.
  7. Don't allow apache to follow symbolic links.
  8. Turn off support for .htaccess files.
  9. Run mod_security.
  10. Disable any unnecessary modules.
  11. Make sure only root has read access to apache's config and binaries.
For technical details on these and more steps follow the bellow link:
20 ways to Secure your Apache Configuration

Labels: , ,

1 Comments:

At 2:32 AM, Anonymous Emil said...

simple steps, nice

 

Post a Comment

<< Home