From 55a3f5c336590b4a41b9758a5c7871cf2e8344cb Mon Sep 17 00:00:00 2001
From: Joe Orton <jorton@apache.org>
Date: Wed, 24 Jul 2013 09:51:14 +0000
Subject: [PATCH] * server/core.c (set_document_root): Improve error message
 for   inaccessible docroot.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1506474 13f79535-47bb-0310-9956-ffa450edef68
---
 server/core.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/core.c b/server/core.c
index 1a07fd9709..cf0e6c13eb 100644
--- a/server/core.c
+++ b/server/core.c
@@ -1481,7 +1481,9 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
             conf->ap_document_root = arg;
         }
         else {
-            return "DocumentRoot must be a directory";
+            return apr_psprintf(cmd->pool, 
+                                "DocumentRoot '%s' is not a directory, or is not readable",
+                                arg);
         }
     }
     return NULL;
-- 
2.40.0