Apache2
Command line options
Collaboration diagram for Command line options:

Macros

#define AP_SERVER_BASEARGS   "C:c:D:d:E:e:f:vVlLtTSMh?X"
 

Functions

int ap_signal_server (int *status, apr_pool_t *pool)
 

Variables

AP_DECLARE_DATA const char * ap_server_argv0
 
AP_DECLARE_DATA const char * ap_server_root
 
AP_DECLARE_DATA const char * ap_runtime_dir
 
AP_DECLARE_DATA server_recap_server_conf
 
AP_DECLARE_DATA apr_pool_tap_pglobal
 
AP_DECLARE_DATA int ap_main_state
 
AP_DECLARE_DATA int ap_run_mode
 
AP_DECLARE_DATA int ap_config_generation
 
AP_DECLARE_DATA apr_array_header_tap_server_pre_read_config
 
AP_DECLARE_DATA apr_array_header_tap_server_post_read_config
 
AP_DECLARE_DATA apr_array_header_tap_server_config_defines
 
AP_DECLARE_DATA int ap_document_root_check
 

Detailed Description

Macro Definition Documentation

◆ AP_SERVER_BASEARGS

#define AP_SERVER_BASEARGS   "C:c:D:d:E:e:f:vVlLtTSMh?X"

AP_SERVER_BASEARGS is the command argument list parsed by http_main.c in apr_getopt() format. Use this for default'ing args that the MPM can safely ignore and pass on from its rewrite_args() handler.

Function Documentation

◆ ap_signal_server()

int ap_signal_server ( int status,
apr_pool_t pool 
)

An optional function to send signal to server on presence of '-k' command line argument.

Parameters
statusThe exit status after sending signal
poolMemory pool to allocate from

Variable Documentation

◆ ap_config_generation

AP_DECLARE_DATA int ap_config_generation
extern

run mode (normal, config test, config dump, ...)

◆ ap_document_root_check

AP_DECLARE_DATA int ap_document_root_check
extern

Available integer for using the -T switch

◆ ap_main_state

AP_DECLARE_DATA int ap_main_state
extern

state of the server (startup, exiting, ...)

◆ ap_pglobal

AP_DECLARE_DATA apr_pool_t* ap_pglobal
extern

global pool, for access prior to creation of server_rec

◆ ap_run_mode

AP_DECLARE_DATA int ap_run_mode
extern

run mode (normal, config test, config dump, ...)

◆ ap_runtime_dir

AP_DECLARE_DATA const char* ap_runtime_dir
extern

The global server's DefaultRuntimeDir This is not usable directly in the general case; use ap_runtime_dir_relative() instead.

◆ ap_server_argv0

AP_DECLARE_DATA const char* ap_server_argv0
extern

The name of the Apache executable

◆ ap_server_conf

AP_DECLARE_DATA server_rec* ap_server_conf
extern

The global server's server_rec

◆ ap_server_config_defines

AP_DECLARE_DATA apr_array_header_t* ap_server_config_defines
extern

An array of all -D defines on the command line. This allows users to effect the server based on command line options. A module which adds to this array must allocate the new element value from same pool as the array (->pool in the array header).

◆ ap_server_post_read_config

AP_DECLARE_DATA apr_array_header_t* ap_server_post_read_config
extern

An array of all -c directives. These are processed after the server's config file

◆ ap_server_pre_read_config

AP_DECLARE_DATA apr_array_header_t* ap_server_pre_read_config
extern

An array of all -C directives. These are processed before the server's config file

◆ ap_server_root

AP_DECLARE_DATA const char* ap_server_root
extern

The global server's ServerRoot