分类: 系统运维
2006-02-20 14:36:02
./configure --prefix=/apache2 --with-mpm=worker --with-apr-util=/usr/local/apr-util/bin/ --enable-so --enable-authnz-ldap --enable-ldap --enable-proxy --enable-proxy-ajp --enable-proxy-ftp --enable-proxy-http --enable-proxy-balancer --enable-cache --enable-disk-cache --enable-mem-cache
(此配置方法开启了LDAP验证以及proxy和cache)
转发配置
ProxyPass
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
代理配置
ProxyRequests on
ProxyRemote *
负载均衡
BalancerMember ajp://localhost:8009
BalancerMember ajp://example.org:8009
ProxyPass balancer://myCluster/examples/
cache用法
CacheRoot /usr/local/httpd/cache
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
# When acting as a proxy, don't cache the list of security updates
CacheDisable http://security.update.server/update-list/