From 462ddba63d6f7372a53a46a06e8da2d2e265fdc7 Mon Sep 17 00:00:00 2001 From: Richard Bowen Date: Mon, 22 Oct 2012 23:42:24 +0000 Subject: [PATCH] Define the document root once, and then use the variable elsewhere, so that if it gets changed one place it inherits it everywhere. Also, a practical example of `Define` in action. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1401126 13f79535-47bb-0310-9956-ffa450edef68 --- docs/conf/httpd.conf.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/conf/httpd.conf.in b/docs/conf/httpd.conf.in index 43425f8203f..7a0138552db 100644 --- a/docs/conf/httpd.conf.in +++ b/docs/conf/httpd.conf.in @@ -129,8 +129,10 @@ ServerAdmin you@example.com # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # -DocumentRoot "@exp_htdocsdir@" - + +Define DOCROOT "@exp_htdocsdir@" +DocumentRoot "${DOCROOT"} + # # Possible values for the Options directive are "None", "All", # or any combination of: -- 2.47.3