Glassfish HTTPd 错误网关错误

发布于 2024-12-05 14:16:00 字数 916 浏览 2 评论 0原文

我已经在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

恬淡成诗 2024-12-12 14:16:00

也许您需要设置网络侦听器才能正确处理 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文