Hi all,
for static pages mod_backhand is great
problems come wheh we use cookies
What i have
2 servers Apache 1.3.12 on Debian/GNU
test1.e-max.ru
test2.e-max.ru
i have file test.php wich is in every server document root
file is following
<?
setcookie ("TestCookie", "Test Value");
setcookie ("TestCookie1", "Test Value1");
setcookie ("TestCookie2", "Test Value2");
setcookie ("TestCookie3", "Test Value3");
setcookie ("TestCookie4", "Test Value4");
?>
<html>
<?
echo "1<br>"; <------------ ## here is on test1 on test2 digit is 2
:) ------->
echo $HTTP_COOKIE_VARS["TestCookie"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie1"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie2"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie3"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie4"];
?>
Both httpd.conf are the same:
<IfModule mod_backhand.c>
UnixSocketDir /var/backhand/backhand
MulticastStats 62.105.128.127:4445
AcceptStats 62.105.128.0/24
</IfModule>
<Directory /var/www>
# Backhand byAge
Backhand byRandom
# Backhand byLoad
</Directory>
output from test.php must be like this
2 <--------------------- ## depends on server thats return
result
Test Value
Test Value1
Test Value2
Test Value3
Test Value4
but one of every 4 or 5 reloads i get
2
Test Value, TestCookie1=Test Value1, TestCookie2=Test Value2,
TestCookie3=Test Value3, TestCookie4=Test Value4
Test Value1
Test Value2
Test Value3
Test Value4
here is from error log
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 1
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 2
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 3 --
GET /test.php HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: bg
Connection: Keep-Alive
Cookie: TestCookie=Test+Value, TestCookie1=Test+Value1,
TestCookie2=Test+Value2, TestCookie3=Test+Value3, TestCookie4=Test+Value4;
TestCookie1=Test+Value1; TestCookie2=Test+Value2; TestCookie3=Test+Value3;
TestCookie4=Test+Value4
Host: test2.e-max.ru
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
BackhandProxied: 62.105.128.81
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 6 -- headers(12)
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 7 (Chunked)
(Keep-Alive)
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 8
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: (1689) Sending back fd(6).
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Request tally 2 [4]
Why it brokes cookies?
and how make just pure redirect in this case
Best regards, George Chavdarov
System administratir, www.emax.ru
for static pages mod_backhand is great
problems come wheh we use cookies
What i have
2 servers Apache 1.3.12 on Debian/GNU
test1.e-max.ru
test2.e-max.ru
i have file test.php wich is in every server document root
file is following
<?
setcookie ("TestCookie", "Test Value");
setcookie ("TestCookie1", "Test Value1");
setcookie ("TestCookie2", "Test Value2");
setcookie ("TestCookie3", "Test Value3");
setcookie ("TestCookie4", "Test Value4");
?>
<html>
<?
echo "1<br>"; <------------ ## here is on test1 on test2 digit is 2
:) ------->
echo $HTTP_COOKIE_VARS["TestCookie"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie1"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie2"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie3"];
echo "<br>";
echo $HTTP_COOKIE_VARS["TestCookie4"];
?>
Both httpd.conf are the same:
<IfModule mod_backhand.c>
UnixSocketDir /var/backhand/backhand
MulticastStats 62.105.128.127:4445
AcceptStats 62.105.128.0/24
</IfModule>
<Directory /var/www>
# Backhand byAge
Backhand byRandom
# Backhand byLoad
</Directory>
output from test.php must be like this
2 <--------------------- ## depends on server thats return
result
Test Value
Test Value1
Test Value2
Test Value3
Test Value4
but one of every 4 or 5 reloads i get
2
Test Value, TestCookie1=Test Value1, TestCookie2=Test Value2,
TestCookie3=Test Value3, TestCookie4=Test Value4
Test Value1
Test Value2
Test Value3
Test Value4
here is from error log
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 1
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 2
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 3 --
GET /test.php HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: bg
Connection: Keep-Alive
Cookie: TestCookie=Test+Value, TestCookie1=Test+Value1,
TestCookie2=Test+Value2, TestCookie3=Test+Value3, TestCookie4=Test+Value4;
TestCookie1=Test+Value1; TestCookie2=Test+Value2; TestCookie3=Test+Value3;
TestCookie4=Test+Value4
Host: test2.e-max.ru
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
BackhandProxied: 62.105.128.81
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 6 -- headers(12)
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 7 (Chunked)
(Keep-Alive)
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Check 8
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: (1689) Sending back fd(6).
[Thu Oct 12 03:39:46 2000] [error] mod_backhand: Request tally 2 [4]
Why it brokes cookies?
and how make just pure redirect in this case
Best regards, George Chavdarov
System administratir, www.emax.ru