You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2013/07/24 11:51:15 UTC

svn commit: r1506474 - /httpd/httpd/trunk/server/core.c

Author: jorton
Date: Wed Jul 24 09:51:14 2013
New Revision: 1506474

URL: http://svn.apache.org/r1506474
Log:
* server/core.c (set_document_root): Improve error message for
  inaccessible docroot.

Modified:
    httpd/httpd/trunk/server/core.c

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1506474&r1=1506473&r2=1506474&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Wed Jul 24 09:51:14 2013
@@ -1481,7 +1481,9 @@ static const char *set_document_root(cmd
             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;