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 ...

Get FreeBSD® Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.