Apache 负载均衡器管理器不显示任何内容
我为 RoR 应用程序设置了代理平衡器,并且需要一些故障排除,因此尝试使用 /balancer-manager 页面。 我还使用 /server-status 页面,它运行良好,但是当我打开 http://myhost.com/balancer-manager 时 我得到以下信息:
myhost.com 的负载均衡器管理器
服务器版本:Apache/2.2.15 (Unix) 服务器构建:2011 年 10 月 6 日 11:46:57
位于 myhost.com 端口 81 的 Apache/2.2.15 (Red Hat) 服务器
,仅此而已。我做错了什么?
配置是:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule status_module modules/mod_status.so
........
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
Allow from 1.1.1.1
</Location>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from localhost
Allow from 1.1.1.1
</Location>
........
<VirtualHost *:80>
........
<Proxy balancer://MyApp_cluster>
BalancerMember http://localhost:4001
BalancerMember http://localhost:4002
BalancerMember http://localhost:4003
</Proxy>
</VirtualHost>
Google 除了这个 https://issues.apache.org 没有给我任何东西/bugzilla/show_bug.cgi?id=41979 所以我的配置中可能有错误,但我无法弄清楚。 谢谢。
I set up proxy balancer for RoR application and need some troubleshooting so try to use /balancer-manager page.
Also I use /server-status page and it works well but when I open http://myhost.com/balancer-manager I get following:
Load Balancer Manager for myhost.com
Server Version: Apache/2.2.15 (Unix) Server Built: Oct 6 2011 11:46:57
Apache/2.2.15 (Red Hat) Server at myhost.com Port 81
and nothing else. what am I doing wrong?
The configs are:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule status_module modules/mod_status.so
........
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
Allow from 1.1.1.1
</Location>
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from localhost
Allow from 1.1.1.1
</Location>
........
<VirtualHost *:80>
........
<Proxy balancer://MyApp_cluster>
BalancerMember http://localhost:4001
BalancerMember http://localhost:4002
BalancerMember http://localhost:4003
</Proxy>
</VirtualHost>
Google give me nothing but this https://issues.apache.org/bugzilla/show_bug.cgi?id=41979
So there maybe an error(s) in my config but I can't figure it out.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,我注意到这是由于 include 语句造成的。
例如,此代码使平衡器工作,但管理器失败(请注意,包含在虚拟主机内部):
在这种情况下,两者都有效:
如果您需要在虚拟主机内部包含,则必须将处理程序放入其中,例如:
I had the same problem,I noticed that is due to the include statment.
For example this code make balancers works but the manager fail (Notice that the Include is inside the virtual host):
In this case both works:
If you need the include inside the virtual host you must put the handler inside it, like:
您确定您在正确的端口吗?
设置似乎没问题。也许一些日志可以提供帮助。
Are you sure you're on right port?
Settings seems to be fine. Maybe some logs could help.