ServerRoot directive


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.


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.


If you do not specify a ServerRoot, httpd assumes:

ServerRoot /usr/local/etc/httpd


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