up previous next contents
Next: Apache "Directives" Up: Configuring the Apache Software Previous: Configuring the Apache Software   Contents

The Apache Directory Structure

The Apache software is typically distributed into the following subdirectories:

cgi-bin This is where many, if not all, of the interactive programs that you write will reside. These will be programs written with Perl, Java, or other programming languages.
conf This directory will contain your configuration files.
htdocs This directory will contain your actual hypertext documents. This directory will typically have many subdirectories.This directory is known as the DocumentRoot.
icons This directory contains the icons (small images) that Apache will use when displaying information or error messages.
images This directory will contain the image files (GIF or JPG) that you will use on your web site.
logs This directory will contain your log files - the access_log and error_log files.
sbin Use nogroup

B. The Apache Configuration Files

  1. The Apache software is configured by changing settings in several text files in the Apache conf (configuration) directory.
  2. There are four configuration files used by Apache:

access.conf The security configuration file. Contains instructions about which users should be able to access what information.
httpd.conf The server configuration file. Typically contains directives that affect how the server runs, such as user and group ID's it should use when running, the location of other files, etc.
srm.conf The resource configuration file. Contains directives that define where documents are found, how to change addresses to filenames, etc.
mime.types A configuration file that relates filename extensions to file types.
Samples of these four files are included in the Appendices.

 


up previous next contents
Next: Apache "Directives" Up: Configuring the Apache Software Previous: Configuring the Apache Software   Contents