免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4540 | 回复: 0
打印 上一主题 下一主题

[proxy] haproxy 反向代理配置问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-01 02:14 |只看该作者 |倒序浏览
haproxy 反向代理配置问题

本人按网上教程自编译后运行后想做反向代理配置但出现如下情况

配置文件:
global
maxconn 5120
chroot /usr/local/haproxy
uid 504
gid 506
daemon
quiet
nbproc 2

defaults
log     global
mode    http
option httplog
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout      5000
clitimeout      50000
srvtimeout      50000

listen appli1 0.0.0.0:90
mode http
option httplog
option dontlognull
log 127.0.0.1 local3
cookie SERVERID rewrite
balance roundrobin
option httpchk
stats uri /stats
stats auth admin:admin
server app1_1 192.168.1.250:80 cookie app1inst1 check inter 2000 rise 2 fall 5

按正常来讲应该90口是要显示192.168.1.250 80口的内容,但网页提示:
503 Service Unavailable
No server is available to handle this request.
不知道什么原因。但是stats还是可以进的, 用lsof -i:90 是有看到进程的,说明配置是生效的。但不知道为什么不能反向
appli1  
Queue Sessions Bytes Denied Errors Warnings Server
Cur Max Limit Cur Max Limit Total LbTot In Out Req Resp Req Conn Resp Retr Redis Status Wght Act Bck Chk Dwn Dwntme Thrtle
Frontend  1 1 2000 1  0 0 0 0 0     OPEN  
swapp_1 0 0 - 0 0 - 0 0 0 0  0  0 0 0 0 1s DOWN 1 Y - 0 1 1s -
Backend 0 0  0 0 2000 0 0 0 0 0 0  0 0 0 0 1s DOWN 0 0 0   1 1s  
显示swapp_1状态是DOWN。。。。
请高手指正。谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP