]> granicus.if.org Git - apache/commitdiff
DocumentRoot always used to be interpreted relative to ServerRoot. Make it server_roo...
authorMartin Kraemer <martin@apache.org>
Fri, 20 Jun 2003 12:53:52 +0000 (12:53 +0000)
committerMartin Kraemer <martin@apache.org>
Fri, 20 Jun 2003 12:53:52 +0000 (12:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100315 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 606e083144948c68c94eed5900e8110fe1984202..da425cc431f73dbed8de670c2b0d288b084c2e64 100644 (file)
@@ -1113,8 +1113,10 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
         return err;
     }
 
+    /* Make it absolute, relative to ServerRoot */
+    arg = ap_server_root_relative(cmd->pool, arg);
+
     /* TODO: ap_configtestonly && ap_docrootcheck && */
-    /* XXX Shouldn't this be relative to ServerRoot ??? */
     if (apr_filepath_merge((char**)&conf->ap_document_root, NULL, arg,
                            APR_FILEPATH_TRUENAME, cmd->pool) != APR_SUCCESS
         || !ap_is_directory(cmd->pool, arg)) {