Basic Server Configuration: Core Directives

The following section contains core directives that are independent of modules and can be used in the Apache server at all times. With each directive, we indicate any version constraints that are required, as well as the context the directive should appear in. Contexts include:

server config

The directive is allowed in the httpd.conf or srm.conf configuration files.

<VirtualHost>

The directive can appear inside a <VirtualHost> subsection, stating that the directive applies to a virtual server.

<Directory>

The directive can appear inside a <Directory> subsection, stating that the directive applies to a specific directory tree on the server.

.htaccess

The directive can appear inside the per-directory .htaccess access control files.

Directives pertaining to specific Apache modules are covered in Chapter 19.

Get Webmaster in a Nutshell, Third Edition 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.