main.c revision d6d7a37600a182e98bc7d5607a92e50cbc429c92
6498N/A * for use in the Apache HTTP server project (http://www.apache.org/)."
6498N/A * for use in the Apache HTTP server project (http://www.apache.org/)."
6498N/A * project, please see <http://www.apache.org/>.
6498N/A#define CORE_PRIVATE
6498N/A#include "ap_config.h"
6498N/A#include "http_main.h"
6498N/A#include "http_log.h"
6498N/A#include "http_config.h"
6498N/A#include "util_uri.h"
6498N/A#include "apr_getopt.h"
6498N/Aconst char *ap_server_argv0;
6498N/Aconst char *ap_server_root;
6498N/Astatic void show_compile_settings(void)
6498N/A#ifdef BIG_SECURITY_HOLE
6498N/A#ifdef HAVE_SHMGET
6498N/A#ifdef USE_MMAP_SCOREBOARD
#ifdef USE_SHMGET_SCOREBOARD
#ifdef USE_OS2_SCOREBOARD
#ifdef USE_POSIX_SCOREBOARD
#ifdef USE_MMAP_FILES
#ifdef MMAP_SEGMENT_SIZE
#ifdef NO_WRITEV
#ifdef NO_LINGCLOSE
#ifdef USE_FCNTL_SERIALIZED_ACCEPT
#ifdef USE_FLOCK_SERIALIZED_ACCEPT
#ifdef USE_USLOCK_SERIALIZED_ACCEPT
#ifdef HAS_OTHER_CHILD
#ifdef HAVE_RELIABLE_PIPED_LOGS
#ifdef BUFFERED_LOGS
#ifdef PIPE_BUF
#ifdef CHARSET_EBCDIC
#ifdef NEED_HASHBANG_EMUL
#ifdef SHARED_CORE
#ifdef HTTPD_ROOT
#ifdef SUEXEC_BIN
#ifdef DEFAULT_PIDLOG
#ifdef DEFAULT_SCOREBOARD
#ifdef DEFAULT_LOCKFILE
#ifdef DEFAULT_XFERLOG
#ifdef DEFAULT_ERRORLOG
#ifdef TYPES_CONFIG_FILE
#ifdef SERVER_CONFIG_FILE
return process;
#ifdef SHARED_CORE
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0,NULL , "Usage: %s [-R directory] [-D name] [-d directory] [-f file]", bin);
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, "Usage: %s [-D name] [-d directory] [-f file]", bin);
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " %s [-C \"directive\"] [-c \"directive\"]", pad);
#ifdef WIN32
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " %s [-k restart|shutdown|start]", pad);
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " %s [-v] [-V] [-h] [-l] [-L] [-S] [-t] [-T]", pad);
#ifdef SHARED_CORE
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -R directory : specify an alternate location for shared object files");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -D name : define a name for use in <IfDefine name> directives");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -d directory : specify an alternate initial ServerRoot");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -f file : specify an alternate ServerConfigFile");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -C \"directive\" : process directive before reading config files");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -c \"directive\" : process directive after reading config files");
#ifdef WIN32
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -n name : set service name and use its ServerConfigFile");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -k shutdown : tell running Apache to shutdown");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -k restart : tell running Apache to do a graceful restart");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -k start : tell Apache to start");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -i : install an Apache service");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -u : uninstall an Apache service");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -h : list available command line options (this page)");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -L : list available configuration directives");
/* ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -S : show parsed settings (currently only vhost settings)"); */
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -t : run syntax check for config files (with docroot check)");
ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, " -T : run syntax check for config files (without docroot check)");
#ifdef WIN32
int configtestonly = 0;
char **new;
if (configtestonly) {
#include "xmlparse.h"
#ifndef SHARED_CORE_BOOTSTRAP
void suck_in_ap_validate_password(void);
void suck_in_ap_validate_password(void)