AWS deployment options - Part 3 - mod_proxy with autoscaling
Due to the limitation with mod_jk for autoscaling configurations, we took a look at mod_proxy Instead of using AJP (mod_jk) protocol we can use the HTTP protocol and with this approach we do not use Apache for the actual load balancing or session stickiness. Instead all requests from the Apache server are forwarded to the application tier ELB (say it runs at HTTP port 8080) and the ELB does load balancing as well as maintains session stickiness. The Apache httpd.conf configuration for the same is mentioned below. LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so ProxyPass /img ! ProxyPass /images ! ProxyPass /css ! ProxyPass /media ! ProxyPass / http://internal-RCCL-AppTier-ELB-722360436.us-east-1.elb.amazonaws.com:8080/ ProxyPassReverse / http://internal-RCCL-AppTier-ELB-722360436.us-east-1.elb.amazonaws.com:8080/ § Pros: ...