*) mod_lua: Move LUA_COMPAT_ALL into the right place, so it will
activate compatibility mode for Lua 5.2. [Daniel Gruno]
- *) mod_lbmethod_heartbeat, mod_heartmonitor: Respect DefaultRuntimeDir/
- DEFAULT_REL_RUNTIMEDIR for the heartbeat storage file. [Jeff Trawick]
+ *) core: Respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR for the
+ scoreboard (ScoreBoardFile). mod_lbmethod_heartbeat, mod_heartmonitor:
+ Respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR for the heartbeat
+ storage file. [Jeff Trawick]
*) mod_ssl: Add RFC 5878 support. [Ben Laurie]
<description>Location of the file used to store coordination data for
the child processes</description>
<syntax>ScoreBoardFile <var>file-path</var></syntax>
-<default>ScoreBoardFile logs/apache_runtime_status</default>
+<default>ScoreBoardFile apache_runtime_status</default>
<contextlist><context>server config</context></contextlist>
<modulelist><module>event</module><module>mpm_winnt</module>
<module>prefork</module><module>worker</module></modulelist>
disk (using file-based shared memory). Specifying this directive causes
Apache httpd to always create the file on the disk.</p>
+ <p>If <var>file-path</var> is not an absolute path, the location specified
+ will be relative to the value of
+ <directive module="core">DefaultRuntimeDir</directive>.</p>
+
<example><title>Example</title>
<highlight language="config">
ScoreBoardFile /var/run/apache_runtime_status
/* Scoreboard file, if there is one */
#ifndef DEFAULT_SCOREBOARD
-#define DEFAULT_SCOREBOARD "logs/apache_runtime_status"
+#define DEFAULT_SCOREBOARD "apache_runtime_status" /* within DEFAULT_REL_RUNTIMEDIR */
#endif
/* Scoreboard info on a process is, for now, kept very brief ---
tmp = s->error_fname;
apr_file_printf(out, "Main ErrorLog: \"%s\"\n", tmp);
if (ap_scoreboard_fname) {
- tmp = ap_server_root_relative(p, ap_scoreboard_fname);
+ tmp = ap_runtime_dir_relative(p, ap_scoreboard_fname);
apr_file_printf(out, "ScoreBoardFile: \"%s\"\n", tmp);
}
ap_dump_mutexes(p, s, out);
/* The config says to create a name-based shmem */
if (ap_scoreboard_fname) {
/* make sure it's an absolute pathname */
- fname = ap_server_root_relative(pconf, ap_scoreboard_fname);
+ fname = ap_runtime_dir_relative(pconf, ap_scoreboard_fname);
if (!fname) {
ap_log_error(APLOG_MARK, APLOG_CRIT, APR_EBADPATH, ap_server_conf, APLOGNO(00003)
"Fatal error: Invalid Scoreboard path %s",
else if (rv == APR_ENOTIMPL) {
/* Make sure it's an absolute pathname */
ap_scoreboard_fname = DEFAULT_SCOREBOARD;
- fname = ap_server_root_relative(pconf, ap_scoreboard_fname);
+ fname = ap_runtime_dir_relative(pconf, ap_scoreboard_fname);
return create_namebased_scoreboard(global_pool, fname);
}