3.3. Configuration

Apache was designed to be modular, so you can run as lean, or as bloated, a webserver as you like. We discuss the basic configuration and some minor tweaks; all the directives are described at httpd.apache.org/docs/mod/directives.html, but during your Linux installation, the documents were placed in /var/www/html/manual/mod/directives.html. You can reach them via the link on the default web page (for the time being, anyway, because we will be moving these documents later): http://localhost/manual/mod/directives.html.

3.3.1. Modifying the Default Configuration

Apache’s configuration file is /etc/httpd/conf/httpd.conf. We’ll start with the default configuration file from Apache version 1.3.24. [6] There are many comments in ...

Get Open Source Web Development with LAMP: Using Linux, Apache, MySQL, Perl, and PHP 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.