Appacheコンパイルと基本構成


コンパイルパラメータの説明:

./configure --prefix=/home/httpd \
--enable-so \ //   so  ,so      DSO   apache    
--with-mpm=worker \ //  apache worker    
--enable-deflate \ //       
--enable-headers \ //        ,      
--enable-cache \ //     
--enable-mem-cache \ //         
--enable-rewrite \ //   URL  
--enable-expires \ //   HTTP  ,           ,         ,      ,             ,   f5  ,           。
--enable-proxy \ //        ,                         
--enable-proxy-connect \
--enable-proxy-http \
--enable-proxy-balancer \
--enable-http
httpd.com nf配置説明:

LoadModule weblogic_module    modules/mod_wl_22.so
LoadModule headers_module     modules/mod_headers.so

//   WebLogic   
<IfModule mod_weblogic.c>
        WebLogicHost 10.143.2.50
        WebLogicPort 8080
        MatchExpression /*
</IfModule>

//   (       zlib )
<Location />
        SetOutputFilter DEFLATE
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.0[678] no-gzip
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
        Header append Vary User-Agent env=!dont-vary
</Location>

//     1     
<IfModule mod_cache.c>
    <IfModule mod_mem_cache.c>
        CacheEnable mem /
        MCacheSize 204800
        MCacheMaxObjectCount 5000
        MCacheMinObjectSize 1
        MCacheMaxObjectSize 102400
    </IfModule>
</IfModule>

//     2     
<IfModule mod_cache.c>
        CacheDefaultExpire 3600
        CacheMaxExpire 86400
        CacheLastModifiedFactor 0.1

        <IfModule mod_disk_cache.c>
                CacheRoot /ngboss/webproxy1/httpd/cache
                CacheMaxFileSize 20000000
                CacheMinFileSize 1
                CacheEnable disk /
                CacheDirLevels 2
                CacheDirLength 1
        </IfModule>
</IfModule>

// expire    (           )
<IfModule expires_module>
 ExpiresActive On
 ExpiresDefault "access plus 1 day"
 ExpiresByType image/gif "access plus 1 month"
 ExpiresByType image/jpeg "access plus 1 month"
 ExpiresByType image/png "access plus 1 month"
 ExpiresByType text/html "access plus 12 hours"
 ExpiresByType text/css "access plus 12 hours"
 ExpiresByType text/javascript "access plus 12 hours"
</IfModule>

// proxy    
ProxyPass            /aslibra http://aslibra.com/blog
ProxyPassReverse     /aslibra http://aslibra.com/blog

// rewrite URL    
RewriteEngine On
RewriteRule ^/blog/test[0-9]{1,}\.htm$ /blog/index.php
WebLogicフロントとして使用する

1.  WebLogic domain         WebLogic Plugin Enabled  Client Cert Proxy Enabled          IP