Selline lugu juhtus täna.
Tahtsin ühte NAS serveri sharet mis oli mounditud cifs võtmega, apache kaudu serveerida. Asi nagu peaaegu õnnestus. Faile sai näha ja puha. Aga kui hakkata alla laadima siis tuleb 0 biti.
TCP liikluse analüüs ka targemat miskit ei andnud:
GET /path/to/file HTTP/1.1
User-Agent: Opera/9.80 (Macintosh; Intel Mac OS X; U; en) Presto/2.2.15 Version/10.10
Host: ftp.example.com
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en,ja;q=0.9,fr;q=0.8,de;q=0.7,es;q=0.6,it;q=0.5,pt;q=0.4,pt-PT;q=0.3,nl;q=0.2,sv;q=0.1,nb;q=0.1,da;q=0.1,fi;q=0.1,ru;q=0.1,pl;q=0.1,zh-CN;q=0.1,zh-TW;q=0.1,ko;q=0.1
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Authorization: Basic dGFua2NsaWVudDpNaW5nZVRhbmtpMDAxsad3
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
HTTP/1.1 200 OK
Date: Thu, 26 Nov 2009 11:33:48 GMT
Server: Apache
Last-Modified: Thu, 21 May 2009 12:37:30 GMT
ETag: "3830e7-f19ac-46a6b68415680"
Accept-Ranges: bytes
Content-Length: 989612
Keep-Alive: timeout=10, max=5
Connection: Keep-Alive
Content-Type: text/plain
Kogu moos.
siis selgus et see on vana hea tundud probleem ja lahenduse annab apache virtuali konfis: EnableSendfile Off