Hi.

Am 15-09-2015 11:07, schrieb Jayapal Reddy:
Hi All,

ssh proxy is send to both machines, it is honouring the session cookie.

Below is my harpy config snippet*, complete logs can be found here.
https://www.digitalocean.com/community/questions/haproxy-appcookie-is-not-working

Please can you send the output of the following commands.

haproxy -vv

haproxy -f <CONFIG_FILE> -d

in another shell the curl command.

Please use curl -v instead of curl -i, thanks.

I have also followed the below tutorial but it is not working.
https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps

In the snippet of this site the php checks for visit cookie.

Just to be on the save site ;-).
You have change the lines

####
if(!isset($_SESSION['visit']))
{
        echo "This is the first time you're visiting this server";
        $_SESSION['visit'] = 0;
}
else
        echo "Your number of visits: ".$_SESSION['visit'];

$_SESSION['visit']++;
####

to

#####
if(!isset($_SESSION['escalation']))
{
        echo "This is the first time you're visiting this server";
        $_SESSION['escalation'] = 0;
}
else
        echo "Your number of visits: ".$_SESSION['escalation'];

$_SESSION['escalation']++;
########

If you build haproxy by your self it could help when you add to the make command the following.

DEBUG=-DDEBUG_HASH

Best regards
Aleks

Can some show some light on where is the issue, Is it specific to
haproxy version ?

-Jayapal
*

listen 10_220_166_226-80 10.220.166.226:80 [1]
        balance roundrobin
        server 10_220_166_226-80_0 10.10.1.242:80 [2] check cookie
10_10_1_242-80
        server 10_220_166_226-80_1 10.10.1.89:80 [3] check cookie
10_10_1_89-80
        appsession escalation len 37 timeout 30m
        mode http
        option httpclose


Links:
------
[1] http://10.220.166.226:80
[2] http://10.10.1.242:80
[3] http://10.10.1.89:80

Reply via email to