Configuring Apache

Just as in /etc/mail (which you saw in Chapter 25, “Configuring Email 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, as in earlier years. However, many administrators use additional config files such as httpd-vhosts.conf to separate out configuration sections like virtual hosts.

  • mime.types— This file provides a lookup table between filename extensions and MIME types (Content-Type headers) ...

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