Glassfish HTTPd 错误网关错误
我已经在 glassfishv3 上部署了 Apache Roller 5,其中 httpd 作为前端。 Roller 运行正常,但当我访问它时,它通常就像坏网关。
这样的woker属性
在这种情况下,像workers.properties
worker.list=roller2
worker.roller2.port=8009
worker.roller2.host=localhost
worker.roller2.type=ajp13
worker.roller2.lbfactor=1
worker.roller2.socket_keepalive=1
worker.roller2.socket_timeout=60
和虚拟主机上
<VirtualHost *:80>
ServerName doma.com
DocumentRoot /var/www/roller
JkMount /roller/* roller2
JkMount /roller roller2
</VirtualHost>
的配置我检查httpd错误消息上的mod_jk日志,像这样
ajp_connection_tcp_get_message::jk_ajp_common.c (1150): (roller2) can't receive the response header message from tomcat, network problems or tomcat (127.0.0.1:8009) is down (errno=11)
是否还有其他配置用于调整glassfish?或有任何建议来解决这个原因?
I have deployed Apache Roller 5 on glassfishv3 which httpd as front end.
Roller have running works fine, but it's often like bad gateway when i accessed it.
i this case, configuration on woker properties like this
workers.properties
worker.list=roller2
worker.roller2.port=8009
worker.roller2.host=localhost
worker.roller2.type=ajp13
worker.roller2.lbfactor=1
worker.roller2.socket_keepalive=1
worker.roller2.socket_timeout=60
and on virtual host
<VirtualHost *:80>
ServerName doma.com
DocumentRoot /var/www/roller
JkMount /roller/* roller2
JkMount /roller roller2
</VirtualHost>
i check on the mod_jk log on httpd error message like this
ajp_connection_tcp_get_message::jk_ajp_common.c (1150): (roller2) can't receive the response header message from tomcat, network problems or tomcat (127.0.0.1:8009) is down (errno=11)
are there other configuration for tunning the glassfish ? or any suggestion to solve this cause ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您需要设置网络侦听器才能正确处理 mod_jk 请求。例如,我在监听器设置中使用了错误的端口,也遇到了同样的错误。要了解如何在 Glassfish 中设置侦听器,另请参阅 此链接。
Maybe you need to setup network listener to handle the mod_jk requests properly. I've gotten the same error for example by using a wrong port in my listener settings. To see how to setup a listener in Glassfish see also this link.