Securing Apache
Even though the Apache HTTP server is one of the most mature and safe server applications included in CentOS 7, there is always room for improvement and a large number of options and techniques are available to harden your web server's security even more. While we cannot show the user every single security feature as it is outside of the scope this book, in this recipe, we will try to teach what is considered to be good practice when it comes to securing your Apache web server for a production system.
Getting ready
To complete this recipe, you will require a working installation of the CentOS 7 operating system with root privileges and a console-based text editor of your choice. It is expected that your server will be using a static IP address and Apache is installed and currently running, and that your server supports one or more domains or subdomains.
How to do it...
Most of the security options and techniques have to be set up in the main Apache configuration file, so we will...