Apache命令分析:
Ø httpd –l
列出所有的静态模块
Compiled in modules:
core.c
mod_win32.c
mpm_winnt.c
http_core.c
mod_so.c
Ø httpd –L
列出所有静态模块中的处理指令
Container for directives affecting resources located in the specified directories
Allowed in *.conf only outside
...
ScriptInterpreterSource (mod_win32.c)
Where to find interpreter to run Win32 scripts (Registry or script shebang line)
Allowed in *.conf anywhere and in .htaccess
when AllowOverride includes FileInfo
...
Listen (mpm_winnt.c)
A port number or a numeric IP address and a port number, and an optional protocol
Allowed in *.conf only outside
...
KeepAliveTimeout (http_core.c)
Keep-Alive timeout duration (sec)
Allowed in *.conf only outside
...
LoadModule (mod_so.c)
a module name and the name of a shared object file to load it from
Allowed in *.conf only outside
Ø httpd –M
Loaded Modules:
core_module (static)
win32_module (static)
mpm_winnt_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
asis_module (shared)
auth_basic_module (shared)
authn_default_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
include_module (shared)
isapi_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
ldap_module (shared)
authnz_ldap_module (shared)
authn_alias_module (shared)
headers_module (shared)
expires_module (shared)
jk_module (shared)
Ø httpd –V
Server version: Apache/2.2.22 (Win32)
Server built: Feb 10 2012 17:32:29
Server's Module Magic Number: 20051115:30
Server loaded: APR 1.4.5, APR-Util 1.4.1
Compiled using: APR 1.4.5, APR-Util 1.4.1
Architecture: 32-bit
Server MPM: WinNT
threaded: yes (fixed thread count)
forked: no
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/winnt"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/apache"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"