apache 如果查看编译模块

1、查看版本:

    [root@moban application]# /application/apache2.2.27/bin/apachectl  -v

    Server version: Apache/2.2.27 (Unix)

    Server built:   Nov  4 2014 01:33:36

2、命令 cat  /application/apache2.2.27/build/config.nice 

    #! /bin/sh

    #

    # Created by configure


    "./configure" \

    "--prefix=/application/apache2.2.27" \

    "--enable-deflate" \

    "--enable-expires" \

    "--enable-headers" \

    "--enable-modules=most" \

    "--enable-so" \

    "--with-mpm=worker" \

    "--enable-rewrite" \

    "$@"

    

    [root@moban application]# /application/apache2.2.27/bin/apachectl  -V

    Server version: Apache/2.2.27 (Unix)

    Server built:   Nov  4 2014 01:33:36

    Server's Module Magic Number: 20051115:33

    Server loaded:  APR 1.5.0, APR-Util 1.5.3

    Compiled using: APR 1.5.0, APR-Util 1.5.3

    Architecture:   64-bit

    Server MPM:     Worker

    threaded:     yes (fixed thread count)

    forked:     yes (variable process count)

     Server compiled with....

     -D APACHE_MPM_DIR="server/mpm/worker"

     -D APR_HAS_SENDFILE

     -D APR_HAS_MMAP

     -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

     -D APR_USE_SYSVSEM_SERIALIZE

     -D APR_USE_PTHREAD_SERIALIZE

     -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

     -D APR_HAS_OTHER_CHILD

     -D AP_HAVE_RELIABLE_PIPED_LOGS

     -D DYNAMIC_MODULE_LIMIT=128

     -D HTTPD_ROOT="/application/apache2.2.27"

     -D SUEXEC_BIN="/application/apache2.2.27/bin/suexec"

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

3、检查重要编译参数;

    /application/apache/bin/apachectl  -l|egrep "_so|_rewrite|header|expire|deflate"

  mod_deflate.c

  mod_expires.c

  mod_headers.c

  mod_rewrite.c

  mod_so.c