Apache 1.3 API Documentation

Constant DOCUMENT_LOCATION

Definition:

Compile-time definition; default set by #include "httpd.h"
     

Usage example:

env CFLAGS="-Wall -DDOCUMENT_LOCATION=\"/usr/httpd/htdocs\"" ./configure
     

This constant is the hard-coded default for the DocumentRoot directive. Like the HTTPD_ROOT definition, its value differs from operating system to operating system:

OS/2:
{HTTPD_ROOT}/docs
Everything else:
{HTTPD_ROOT}/htdocs

The default value is based on the definition of the HTTPD_ROOT compile-time definition (q.v.).

You should use the ap_document_root() (q.v.) routine instead to obtain the value of the DocumentRoot for the server handling a request.

See also:
ap_document_root, BIG_SECURITY_HOLE, DEFAULT_ADMIN, DEFAULT_CONTENT_TYPE, DEFAULT_INDEX, DEFAULT_KEEPALIVE, DEFAULT_KEEPALIVE_TIMEOUT, DEFAULT_PATH, DEFAULT_TIMEOUT, DYNAMIC_MODULE_LIMIT, HARD_SERVER_LIMIT, HTTPD_ROOT, SECURITY_HOLE_PASS_AUTHORIZATION, TARGET

Previous: DEFAULT_TIMEOUT Next: DONE

Table of Contents (Routines, Structures, Data Cells, Constants)