mod_proxy_ajp
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mod_proxy_ajp [2012/04/20 16:46] – created k2patel | mod_proxy_ajp [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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:// | alternatively you can choose [[http:// | ||
| + | |||
| + | ==== Documentation ==== | ||
| + | [[http:// | ||
| + | |||
| + | ==== quick explanation / observation ==== | ||
| + | This module does not monitor services.\\ | ||
| + | But it does checking before service request if it fails it fall back to next node.\\ | ||
| + | |||
| + | === = === | ||
| + | |||
| + | Sticky session can be used by setting variable name to stickysession there is many way to define it.\\ | ||
| + | but result will be same.\\ | ||
| + | |||
| + | <code bash> | ||
| + | stickysession=JSESSIONID | ||
| + | </ | ||
| + | |||
| + | === = === | ||
| + | |||
| + | **Keep in Mind**\\ | ||
| + | |||
| + | BalancerMember is AJP connector so you need to use AJP connector port number. | ||
| + | |||
| + | === = === | ||
| + | |||
| + | Balancer Manager is a satus page just like info-page or status-page from mod_status.\\ | ||
| + | |||
| + | <code bash> | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === = === | ||
| + | |||
| + | If you receive error as shown below. | ||
| + | |||
| + | <code error> | ||
| + | [error] (70014)End of file found: ajp_ilink_receive() can't receive header | ||
| + | [error] ajp_read_header: | ||
| + | [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost) | ||
| + | </ | ||
| + | |||
| + | Mostly likely you need to set packet size on jboss. **packetSize=" | ||
| + | |||
| + | <code xml | server.xml> | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | ==== My Configuration ==== | ||
| + | |||
| + | <code httpd> | ||
| + | LoadModule proxy_ajp_module modules/ | ||
| + | |||
| + | # | ||
| + | # 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 " | ||
| + | # 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:// | ||
| + | #ProxyPass /examples/ ajp:// | ||
| + | |||
| + | |||
| + | < | ||
| + | ServerName linux4 | ||
| + | <Proxy balancer:// | ||
| + | Order deny,allow | ||
| + | Allow from all | ||
| + | |||
| + | BalancerMember ajp:// | ||
| + | BalancerMember ajp:// | ||
| + | |||
| + | |||
| + | ProxySet maxattempts=1 | ||
| + | ProxySet stickysession=JSESSIONID | ||
| + | ProxySet timeout=300 | ||
| + | </ | ||
| + | |||
| + | ProxyIOBufferSize 19000 | ||
| + | LimitRequestFieldsize 18000 | ||
| + | ProxyTimeout 300 | ||
| + | ProxyStatus Full | ||
| + | |||
| + | ProxyPass /Untitled1 balancer:// | ||
| + | # | ||
| + | |||
| + | < | ||
| + | SetHandler balancer-manager | ||
| + | Order Deny,Allow | ||
| + | Deny from all | ||
| + | Allow from localhost | ||
| + | Allow from 10.0.0.0/4 | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | </ | ||
mod_proxy_ajp.1334940395.txt.gz · Last modified: 2020/08/10 02:30 (external edit)
