-*- coding: utf-8 -*-
Changes with Apache 2.5.1
+ *) configtest: Issue a warning for non-existent directories in <Directory> config
+ sections. PR63079. [Stephane Blondon <stephane.blondon gmail.com>].
+
*) mod_proxy_http: Fix random memory-corruption in case of an error while
reading a response from the backend.
PR 64234 [Ruediger Pluem, Barnim Dzwillo <dzwillo@strato.de>]
}
else if (strcmp(cmd->path, "/") != 0)
{
+ int run_mode = ap_state_query(AP_SQ_RUN_MODE);
char *newpath;
/*
"\"> path is invalid.", NULL);
}
+ if (run_mode == AP_SQ_RM_CONFIG_TEST &&
+ !ap_is_directory(cmd->temp_pool, cmd->path)) {
+ ap_log_perror(APLOG_MARK, APLOG_STARTUP, 0,
+ cmd->temp_pool, APLOGNO(10234)
+ "Warning: <Directory \"%s\"> does not exist or is not a directory",
+ cmd->path);
+ }
+
cmd->path = newpath;
if (cmd->path[strlen(cmd->path) - 1] != '/')
cmd->path = apr_pstrcat(cmd->pool, cmd->path, "/", NULL);