configuring.html revision 1bea731bc1c7e256ec652da11848312162dda311
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna BGCOLOR="#FFFFFF"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna TEXT="#000000"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna LINK="#0000FF"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna VLINK="#000080"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna ALINK="#FF0000"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<!--#include virtual="header.html" -->
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<li><a href="#main">Main Configuration Files</a></li>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<li><a href="#syntax">Syntax of the Configuration Files</a></li>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<A HREF="mod/core.html#ifdefine"><IfDefine></A><br>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<A HREF="mod/mod_mime.html#typesconfig">TypesConfig</A><br>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<P>Apache is configured by placing <A HREF="mod/directives.html"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna>directives</A> in plain text configuration files. The main
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaconfiguration file is usually called <CODE>httpd.conf</CODE>. The
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernalocation of this file is set at compile-time, but may be overridden
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernawith the <CODE>-f</CODE> command line flag. In addition, other
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaHREF="mod/core.html#include">Include</A></CODE> directive. Any
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernadirective may be placed in any of these configuration files. Changes
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernato the main configuration files are only recognized by Apache when it
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernais started or restarted.</p>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaThe server also reads a file containing mime document types; the
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernafilename is set by the <A HREF="mod/mod_mime.html#typesconfig"
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna>TypesConfig</A> directive, and is <CODE>mime.types</CODE> by default.
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<H2><a name="syntax">Syntax of the Configuration Files</a></H2>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<P>Apache configuration files contain one directive per line. The
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaback-slash "\" may be used as the last character on a line to indicate
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernathat the directive continues onto the next line. There must be no
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaother characters or white space between the back-slash and the end of
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<P>Directives in the configuration files are case-insensitive, but
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaarguments to directives are often case sensitive. Lines which begin
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernawith the hash character "#" are considered comments, and are ignored.
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaComments may <STRONG>not</STRONG> be included on a line after a
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaconfiguration directive. Blank lines and white space occurring before
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaa directive are ignored, so you may indent directives for clarity.
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<P>You can check your configuration files for syntax errors without
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernastarting the server by using <CODE>apachectl configtest</CODE>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<A HREF="mod/core.html#clearmodulelist">ClearModuleList</A><br>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<A HREF="mod/core.html#ifmodule"><IfModule></A><br>
a42b70fa75429d73ef00d6ae212676f8a652f51cpquerna<P>Apache is a modular server. This implies that only the most basic
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernafunctionality is included in the core server. Extended features are
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaavailable through <A HREF="mod/index-bytype.html">modules</A> which
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernacan be loaded into Apache. By default, a <A
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaHREF="mod/module-dict.html#Status">base</A> set of modules is
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernaincluded in the server at compile-time. If the server is compiled to
a42b70fa75429d73ef00d6ae212676f8a652f51cpquernause <A HREF="dso.html">dynamically loaded</A> modules, then modules
HREF="sections.html">How Directory, Location and Files sections
<!--#include virtual="footer.html" -->