ServerRoot directive


Purpose

The ServerRoot directive sets the directory in which httpd lives.

Upon startup, httpd expects to find the Server Configuration File as conf/httpd.conf in the ServerRoot directory.

Other Server Configuration directives may use this directory to give relative paths for locations of files.


Syntax

ServerRoot dir

Where dir is an absolute path of a directory on your server machine.

Only one ServerRoot directive is allowed in the server configuration file.


Default

If you do not specify a ServerRoot, httpd assumes:

ServerRoot /usr/local/etc/httpd


Examples

ServerRoot /usr/local/httpd

This would set ServerRoot to the directory /usr/local/httpd.

ServerRoot /web1/http

This would set ServerRoot to /web1/http.


Return to Server Configuration File Overview

httpd@ncsa.uiuc.edu