From: Jim Jagielski Date: Mon, 6 Jun 2016 19:11:38 +0000 (+0000) Subject: Merge r1506474 from trunk: X-Git-Tag: 2.4.21~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c23a1d62fbb3788a247ba52bfcddd6ba688fa326;p=apache Merge r1506474 from trunk: * server/core.c (set_document_root): Improve error message for inaccessible docroot. Submitted by: jorton Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1747057 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index a957807a09..43cad2dc25 100644 --- a/server/core.c +++ b/server/core.c @@ -1559,7 +1559,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;