Tags » Apache Httpd

Set up Apache Httpd 2.2 to cache static contents from Weblogic / Tomcat / Jboss backend


Add below to conf.d/backend.conf

<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot “/var/cache/mod_proxy/”
CacheEnable disk “/”
CacheDirLevels 2
CacheDirLength 1

CacheLock on
CacheLockPath “/tmp/mod_cache-lock”
CacheLockMaxAge 5
</IfModule> 88 more words


Apache Httpd 2.2.x proxying request to Tomcat 8

Add below entries to /etc/httpd/conf.d/tomcat.conf:

SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
SetEnv proxy-initial-not-pooled 1
RequestHeader unset Expect early

ProxyPass “/abc” “balancer://mycluster/”
<Proxy balancer://mycluster>
ProxySet failonstatus=502,503 maxattempts=100… 447 more words