Learning to set up web servers manually and control traffic
We are going to start with Apache httpd. We will commence by installing the service and configuring the files. We can see in the following screenshot the installation of Apache httpd:
Figure 8.1 – Installing Apache httpd web service
We are going to look at the default httpd.conf
file in order to showcase the out-of-the-box setup for Apache httpd. We can see in the following screenshot the layout of the /
etc/httpd/conf/httpd.conf
file:
Figure 8.2 – The /etc/httpd/conf/httpd.conf truncated file
As seen in the previous screenshot, information on how to set up a web server can be found in the Apache httpd manual page (man) pages. You can utilize these to understand what you are setting and to remind you of items you may have forgotten. The /etc/httpd/conf/httpd.conf
file is also a good place to look for help and reminders, but do not rely on it alone.