ServerRoot Directive

Top - Docs - General - Server - Resource - Access - FAQ - Tutorials

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.


Virtual Host

This directive is not available for virtual host configuration.


Default

If you do not specify a ServerRoot, HTTPd assumes:

ServerRoot /usr/local/etc/httpd

Compile Option: HTTPD_ROOT


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.


[Back] Return to Server Configuration File Overview
NCSA HTTPd Development Team / httpd@ncsa.uiuc.edu / 10-02-95