This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
mod_proxy_ajp [2012/04/20 16:46] k2patel created |
mod_proxy_ajp [2012/04/20 16:47] k2patel |
||
---|---|---|---|
Line 4: | Line 4: | ||
But we had some old services require it and we down to road for mod_proxy_ajp.\\ | But we had some old services require it and we down to road for mod_proxy_ajp.\\ | ||
alternatively you can choose [[http://www.jboss.org/mod_cluster | mod_cluster]].\\ | alternatively you can choose [[http://www.jboss.org/mod_cluster | mod_cluster]].\\ | ||
+ | |||
+ | ==== My Configuration ==== | ||
+ | |||
+ | <code httpd> | ||
+ | LoadModule proxy_ajp_module modules/mod_proxy_ajp.so | ||
+ | |||
+ | # | ||
+ | # When loaded, the mod_proxy_ajp module adds support for | ||
+ | # proxying to an AJP/1.3 backend server (such as Tomcat). | ||
+ | # To proxy to an AJP backend, use the "ajp://" URI scheme; | ||
+ | # Tomcat is configured to listen on port 8009 for AJP requests | ||
+ | # by default. | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Uncomment the following lines to serve the ROOT webapp | ||
+ | # under the /tomcat/ location, and the jsp-examples webapp | ||
+ | # under the /examples/ location. | ||
+ | # | ||
+ | #ProxyPass /tomcat/ ajp://localhost:8009/ | ||
+ | #ProxyPass /examples/ ajp://localhost:8009/jsp-examples/ | ||
+ | |||
+ | |||
+ | <VirtualHost 10.0.1.5:80> | ||
+ | ServerName linux4 | ||
+ | <Proxy balancer://cluster> | ||
+ | Order deny,allow | ||
+ | Allow from all | ||
+ | |||
+ | BalancerMember ajp://localhost:8009/Untitled1 route=node1 | ||
+ | BalancerMember ajp://localhost:8010/Untitled1 route=node2 | ||
+ | |||
+ | |||
+ | ProxySet maxattempts=1 | ||
+ | ProxySet stickysession=JSESSIONID | ||
+ | ProxySet timeout=300 | ||
+ | </Proxy> | ||
+ | ProxyIOBufferSize 19000 | ||
+ | LimitRequestFieldsize 18000 | ||
+ | ProxyTimeout 300 | ||
+ | ProxyStatus Full | ||
+ | |||
+ | ProxyPass /Untitled1 balancer://cluster/ | ||
+ | #ProxyPassReverse /Untitled1 http://linux4/Untitled1 | ||
+ | |||
+ | <Location /balancer-manager> | ||
+ | SetHandler balancer-manager | ||
+ | Order Deny,Allow | ||
+ | Deny from all | ||
+ | Allow from localhost | ||
+ | Allow from 10.0.0.0/4 | ||
+ | </Location> | ||
+ | |||
+ | </VirtualHost> | ||
+ | </code> |