apache - java application running on tomcat. Unable to access over ajp. -


application accessible on tomcat http port. application when accessed web server(apache http server) gives bad gateway error. worker.properties(apache http server) & server.xml(tomcat) tuned well. socket/connection timeout 20 sec on both sides.

jk.log shows below error. enter image description here

the error says tomcat not accepting connections. how come @ same time, application accessible on http.

on tomcat side dont see errors in log.

you use different ports http connection (default 8080) , ajp connection (default 8009). can check exact values in conf/server.xml.

your error indicates there problems between httpd , client (firewall, slow connection etc.). try remove timeouts, worker.ajp13.socket_timeout=3. (https://tomcat.apache.org/connectors-doc/common_howto/timeouts.html)

make sure ports not blocked possible firewalls. ubuntu, ufw (uncomplicated firewall) used open ajp connections: ufw enable && ufw allow 8009.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -