These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX02/Apache Configuration

Classnotes | UNIX02 | RecentChanges | Preferences

Showing revision 1
Apache's configuration file format contains markup similar to HTML or XML. This makes this file fairly easy to visualize and understand.

On Red Hat (and many other UNIX systems) Apache's configuration files are installed in /etc/httpd/conf. However, when built from source, Apache's configuration files have traditionally defaulted to /var/apache/conf. The move to /etc/httpd is a logical one, as most system configuration files go there, but you should be aware of the variants.

The basic configuration unit of the Apache config file is known as a Directive. There is allowed one Directive per line. Groups of Directives are broken up into Modules.

Taking a look at an example module from /etc/httpd/conf/httpd.conf:

 <Directory />
    Options FollowSymLinks?
    AllowOverride? None
 </Directory?>

We see that it is quite similar to various markup languages.

Global Environment Settings

 #
 # ServerType? is either inetd, or standalone.  Inetd mode is only supported on
 # Unix platforms.
 #
 ServerType? standalone

Ere I am JH

Adding New Directories

For many reasons (including security)

See also http://httpd.apache.org/docs/configuring.html


Classnotes | UNIX02 | RecentChanges | Preferences
This page is read-only | View other revisions | View current revision
Edited April 26, 2003 3:22 am (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.