Apache命令分析

Apache命令分析

Ø httpd –l

列出所有的静态模块

Compiled in modules:

  core.c

  mod_win32.c

  mpm_winnt.c

  http_core.c

  mod_so.c

Ø httpd –L

列出所有静态模块中的处理指令

<Directory (core.c)

Container for directives affecting resources located in the specified directories

Allowed in *.conf only outside <Directory>, <Files> or <Location>

...

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 <Directory>, <Files> or <Location>

...

KeepAliveTimeout (http_core.c)

Keep-Alive timeout duration (sec)

Allowed in *.conf only outside <Directory>, <Files> or <Location>

...

LoadModule (mod_so.c)

a module name and the name of a shared object file to load it from

Allowed in *.conf only outside <Directory>, <Files> or <Location>

Ø 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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值