OtherBill and Brad have confirmed that including ap_config_layout.h isn't a
problem on non-Unix platforms as they don't use suexec.
PR: 15713
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98134
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.1.0-dev
[Remove entries to the current 2.0 section below, when backported]
+
+ *) Use saner default config values for suexec. PR 15713.
+ [Thom May <thom@planetarytramp.net>]
+
*) Allow 'make depend' to work with non-GCC compilers.
[Justin Erenkrantz]
#ifndef _SUEXEC_H
#define _SUEXEC_H
+/*
+ * Include ap_config_layout so we can work out where the default htdocsdir
+ * and logsdir are.
+ */
+#include "ap_config_layout.h"
+
/*
* HTTPD_USER -- Define as the username under which Apache normally
* runs. This is the only user allowed to execute
* debugging purposes.
*/
#ifndef AP_LOG_EXEC
-#define AP_LOG_EXEC "/usr/local/apache2/logs/cgi.log" /* Need me? */
+#define AP_LOG_EXEC DEFAULT_EXP_LOGFILEDIR "/suexec_log" /* Need me? */
#endif
/*
* that can be used for suEXEC behavior.
*/
#ifndef AP_DOC_ROOT
-#define AP_DOC_ROOT "/usr/local/apache2/htdocs"
+#define AP_DOC_ROOT DEFAULT_EXP_HTDOCSDIR
#endif
/*