]> granicus.if.org Git - apache/commitdiff
Merge r1506474 from trunk:
authorJim Jagielski <jim@apache.org>
Mon, 6 Jun 2016 19:11:38 +0000 (19:11 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 6 Jun 2016 19:11:38 +0000 (19:11 +0000)
* 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

server/core.c

index a957807a09f4274f27f9b4b32fb8e7a9b7274a39..43cad2dc25fa8a4ee8952612cc7b04ab21d3a5d0 100644 (file)
@@ -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;