Chapter 18. Apache Configuration

Apache is the most widely used web server on the Internet. The Apache server was developed from an early version of the original NCSA server with the intent of providing further improvement while maintaining compatibility. Since then, all development efforts on the NCSA server have ceased. Apache has since earned the title of reigning king among web servers, and it isn’t hard to see why: the base distribution is fast, free, and full-featured. You can pick up a copy of the Apache server and its documentation from the Apache home page: http://www.apache.org. This chapter covers Version 1.3 of the Apache server.

Understanding Apache

The Apache distribution consists of source for a core binary, httpd, which you can compile for your particular server architecture. By itself, httpd doesn’t do very much. However, you can also include any number of Apache modules, either at compile-time or at runtime, depending on the version. These modules, written in C, define much of the behavior of the Apache server. Apache will call on each module to perform a dedicated task, such as user authentication or database queries.

At startup, Apache reads several configuration files. You can modify the behavior of Apache and its modules by inserting or modifying the runtime directives into one or more configuration files. Each file outlines how the Apache server will perform in specific areas. The files are:

httpd.conf

The server configuration file, which specifies the basics ...

Get Webmaster in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.