Configuring Apache
Just as in /etc/mail (which we saw in Chapter 25, “Configuring E-mail Services”), /usr/local/etc/apache (the Apache configuration directory) contains a number of files, some of which are of interest to us and some of which are not. Let's take a look at each of them in turn:
httpd.conf— This is the main Apache configuration file. These days, everything is consolidated into this one file, rather than being grouped into as many as three more specific files.
mime.types— This file provides a lookup table between filename extensions and MIME types (Content-Type headers) in files that Apache sends. This is how browsers know how to handle files they download.
magic— An alternative method to MIME types is “magic”, which tries to determine ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access