User Tools

Site Tools


mod_proxy_ajp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mod_proxy_ajp [2012/04/20 16:47]
k2patel
mod_proxy_ajp [2012/04/20 16:58]
k2patel [quick explanation / observation]
Line 5: Line 5:
 alternatively you can choose [[http://​www.jboss.org/​mod_cluster | mod_cluster]].\\ alternatively you can choose [[http://​www.jboss.org/​mod_cluster | mod_cluster]].\\
  
 +==== Documentation ====
 +[[http://​httpd.apache.org/​docs/​2.2/​mod/​mod_proxy_ajp.html | mod_proxy_ajp]]
 +
 +==== 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
 +</​code>​
 +
 +=== = ===
 +
 +**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>
 +/​balancer-manager
 +</​code>​
 +
 +=== = ===
 +
 +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:​ ajp_ilink_receive failed
 +[error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)
 +</​code>​
 +
 +Mostly likely you need to set packet size on jboss. **packetSize="​20000"​**
 +
 +<code xml | server.xml>​
 +  <​Connector port="​8009"​ address="​${jboss.bind.address}"​
 +         ​enableLookups="​false"​ redirectPort="​8443"​ debug="​0"​
 +         ​protocol="​AJP/​1.3"​ packetSize="​20000"/>​
 +</​code>​
 ==== My Configuration ==== ==== My Configuration ====
  
Line 41: Line 88:
 ProxySet timeout=300 ProxySet timeout=300
 </​Proxy>​ </​Proxy>​
 +
 ProxyIOBufferSize 19000 ProxyIOBufferSize 19000
 LimitRequestFieldsize 18000 LimitRequestFieldsize 18000
mod_proxy_ajp.txt ยท Last modified: 2020/08/10 02:35 (external edit)