0

我想使用 haproxy 而不是 microsoft 负载平衡器。

我的 ASP 应用程序在用户登录后放置了一个 cookie,我使用这个 cookie 在后台保持会话。

但是当我使用 Haproxy 时,我的 cookie 没有出现在列表中!(我看到了“cookie HaProxy insert nocache direct”设置的cookie,但没有看到我自己的应用程序cookie)

因此,使用 Microsoft 负载均衡器,我的 cookie 可以:http: //img600.imageshack.us/i/cook2.png/

但是当使用 HaProxy 时:http: //img821.imageshack.us/i/cook1.png/

为什么 Haproxy 拦截我的 cookie 以及我必须如何配置它才能让它通过?(它不会被 HaProxy cookie 取代,因为如果我只是使用“重写”或“前缀”,则不会出现任何 cookie)

谢谢你的帮助,对不起我的英语不好!

这是我的配置文件:

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

listen Backoffice 0.0.0.0:80
        mode http
        stats enable
        option httpchk http://mySite.com/index.asp
        option httpclose
        option forwardfor
        balance roundrobin
        cookie bstedg insert nocache indirect
        server  IIS 10.0.0.20:80 cookie iis check inter 2000 rise 2 fall 5 maxconn 800 weight 10 # disabled
4

1 回答 1

0

在这种情况下,您无需告诉 HAProxy 任何有关您的 cookie 的信息。后端只有一台服务器,您在 HAProxy 中使用的所有 cookie 都粘在后端服务器上。

于 2012-01-31T16:08:20.347 回答