I am having a problem with mod_backhand. I have two machines running
FreeBSD 4.1 with Apache-1.3.12 with mod_backhand 1.1.0.
I have tested that the configuration works with the default server dishing
up the backhand-test script by balancing with byAge and byCost(in that
order) but when I use it in a virtualhost directive and it is handed off...
It goes to the default root server on the forwarded box. It seems as if
the responding box is ignoring the Host: negotiation. Has anyone else seen
this problem or can give me some pointers to check? I've verified that the
box that responds with the root server instead of the virt host will indeed
serve the actual virthost. This seems to occur with every virtualhost
specified directive I try to balance, yet the balancing of the default root
works perfectly. I also used tcpdump to grab some packets and verify that
indeed Host: is being passed off.. Perhaps it's malformed?
02:58:39.906147 changedservername.domain.net.news > 10.1.1.1.8080: P
1:365(364) ack 1 win 17520 (DF)
(That line identify's the answering server is requesting the backhanded
page from the second server(the one who responds with the default dir)
0x0000 4500 0194 38e3 4000 4006 1a35 d818 1b0d E...8.@.@..5....
0x0010 d818 1b0e 07d9 1f90 cbc7 9b90 fbbf 7b31 ..............{1
0x0020 5018 4470 c158 0000 4745 5420 2f61 7061 P.Dp.X..GET./apa
0x0030 6368 655f 7062 2e67 6966 2048 5454 502f che_pb.gif.HTTP/
0x0040 312e 310a 4163 6365 7074 3a20 2a2f 2a0a 1.1.Accept:.*/*.
0x0050 4163 6365 7074 2d45 6e63 6f64 696e 673a Accept-Encoding:
0x0060 2067 7a69 702c 2064 6566 6c61 7465 0a41 .gzip,.deflate.A
0x0070 6363 6570 742d 4c61 6e67 7561 6765 3a20 ccept-Language:.
0x0080 656e 2d75 730a 436f 6e6e 6563 7469 6f6e en-us.Connection
0x0090 3a20 4b65 6570 2d41 6c69 7665 0a48 6f73 :.Keep-Alive.Hos
0x00a0 743a 2077 7777 2e64 6865 6c74 6f6e 2e77 t:.www.dhelton.b
0x00b0 696e 2e6e 6574 3a38 3038 300a 4966 2d4d bob.com:8080.If-M
0x00c0 6f64 6966 6965 642d 5369 6e63 653a 2057 odified-Since:.W
0x00d0 6564 2c20 3033 204a 756c 2031 3939 3620 ed,.03.Jul.1996.
0x00e0 3036 3a31 383a 3135 2047 4d54 0a49 662d 06:18:15.GMT.If-
0x00f0 4e6f 6e65 2d4d 6174 6368 3a20 2231 6434 None-Match:."1d4
0x0100 3234 392d 3931 362d 3331 6461 3130 6137 249-916-31da10a7
0x0110 220a 5265 6665 7265 723a 2068 7474 703a ".Referer:.http:
0x0120 2f2f 7777 772e 6468 656c 746f 6e2e 7769 //www.dhelton.bo
0x0130 6e2e 6e65 743a 3830 3830 2f0a 5573 6572 b.com:8080/.User
0x0140 2d41 6765 6e74 3a20 4d6f 7a69 6c6c 612f -Agent:.Mozilla/
0x0150 342e 3020 2863 6f6d 7061 7469 626c 653b 4.0.(compatible;
0x0160 204d 5349 4520 352e 353b 2057 696e 646f .MSIE.5.5;.Windo
0x0170 7773 2039 3829 0a42 6163 6b68 616e 6450 ws.98).BackhandP
0x0180 726f 7869 6564 3a20 3234 2e36 2e35 372e roxied:.25.6.52.
0x0190 3930 0a0a 99..
0x0090 shows that the offending server does indeed receive a Host:
request.... Now either my offending server is denying that it exists for some
reason or the server handing it off it malforming the request. Anyone have
some ideas as to what I can do or use to hunt down the real problem here?
FreeBSD 4.1 with Apache-1.3.12 with mod_backhand 1.1.0.
I have tested that the configuration works with the default server dishing
up the backhand-test script by balancing with byAge and byCost(in that
order) but when I use it in a virtualhost directive and it is handed off...
It goes to the default root server on the forwarded box. It seems as if
the responding box is ignoring the Host: negotiation. Has anyone else seen
this problem or can give me some pointers to check? I've verified that the
box that responds with the root server instead of the virt host will indeed
serve the actual virthost. This seems to occur with every virtualhost
specified directive I try to balance, yet the balancing of the default root
works perfectly. I also used tcpdump to grab some packets and verify that
indeed Host: is being passed off.. Perhaps it's malformed?
02:58:39.906147 changedservername.domain.net.news > 10.1.1.1.8080: P
1:365(364) ack 1 win 17520 (DF)
(That line identify's the answering server is requesting the backhanded
page from the second server(the one who responds with the default dir)
0x0000 4500 0194 38e3 4000 4006 1a35 d818 1b0d E...8.@.@..5....
0x0010 d818 1b0e 07d9 1f90 cbc7 9b90 fbbf 7b31 ..............{1
0x0020 5018 4470 c158 0000 4745 5420 2f61 7061 P.Dp.X..GET./apa
0x0030 6368 655f 7062 2e67 6966 2048 5454 502f che_pb.gif.HTTP/
0x0040 312e 310a 4163 6365 7074 3a20 2a2f 2a0a 1.1.Accept:.*/*.
0x0050 4163 6365 7074 2d45 6e63 6f64 696e 673a Accept-Encoding:
0x0060 2067 7a69 702c 2064 6566 6c61 7465 0a41 .gzip,.deflate.A
0x0070 6363 6570 742d 4c61 6e67 7561 6765 3a20 ccept-Language:.
0x0080 656e 2d75 730a 436f 6e6e 6563 7469 6f6e en-us.Connection
0x0090 3a20 4b65 6570 2d41 6c69 7665 0a48 6f73 :.Keep-Alive.Hos
0x00a0 743a 2077 7777 2e64 6865 6c74 6f6e 2e77 t:.www.dhelton.b
0x00b0 696e 2e6e 6574 3a38 3038 300a 4966 2d4d bob.com:8080.If-M
0x00c0 6f64 6966 6965 642d 5369 6e63 653a 2057 odified-Since:.W
0x00d0 6564 2c20 3033 204a 756c 2031 3939 3620 ed,.03.Jul.1996.
0x00e0 3036 3a31 383a 3135 2047 4d54 0a49 662d 06:18:15.GMT.If-
0x00f0 4e6f 6e65 2d4d 6174 6368 3a20 2231 6434 None-Match:."1d4
0x0100 3234 392d 3931 362d 3331 6461 3130 6137 249-916-31da10a7
0x0110 220a 5265 6665 7265 723a 2068 7474 703a ".Referer:.http:
0x0120 2f2f 7777 772e 6468 656c 746f 6e2e 7769 //www.dhelton.bo
0x0130 6e2e 6e65 743a 3830 3830 2f0a 5573 6572 b.com:8080/.User
0x0140 2d41 6765 6e74 3a20 4d6f 7a69 6c6c 612f -Agent:.Mozilla/
0x0150 342e 3020 2863 6f6d 7061 7469 626c 653b 4.0.(compatible;
0x0160 204d 5349 4520 352e 353b 2057 696e 646f .MSIE.5.5;.Windo
0x0170 7773 2039 3829 0a42 6163 6b68 616e 6450 ws.98).BackhandP
0x0180 726f 7869 6564 3a20 3234 2e36 2e35 372e roxied:.25.6.52.
0x0190 3930 0a0a 99..
0x0090 shows that the offending server does indeed receive a Host:
request.... Now either my offending server is denying that it exists for some
reason or the server handing it off it malforming the request. Anyone have
some ideas as to what I can do or use to hunt down the real problem here?