2014-09-29 45 views
1

我在CentOS 5上运行的Plesk 9.5.2这个版本的Apache:范围:0〜字节失败了Apache 2.2.23

# apachectl -v 
Server version: Apache/2.2.23 (Unix) 
Server built: Sep 26 2012 00:02:01 

试图服务的一些MP4文件,我设置MIME类型正确,但我得到这个奇怪的行为:

# curl -I -s iated.org/inted/video_data/promo.mp4      
HTTP/1.1 200 OK 
Date: Mon, 29 Sep 2014 16:09:48 GMT 
Server: Apache/2.2.23 (CentOS) 
Last-Modified: Sun, 28 Sep 2014 09:44:30 GMT 
ETag: "21f0070-13079ae-5041cff289b80" 
Accept-Ranges: bytes 
Content-Length: 19954094 
X-Powered-By: PleskLin 
Content-Type: video/mp4 

这是好的。这就是IE10要求的。但是Firefox和Chrome正在做的事情票友,并设置内容字节范围:0〜喜欢:

# curl -I -H "Range: bytes=0-" -s iated.org/inted/video_data/promo.mp4 

比什么都不返回。虚空。

范围请求工作,否则得好:

# curl -I -H "Range: bytes=1-" -s iated.org/inted/video_data/promo.mp4       
HTTP/1.1 206 Partial Content 
Date: Mon, 29 Sep 2014 16:08:41 GMT 
Server: Apache/2.2.23 (CentOS) 
Last-Modified: Sun, 28 Sep 2014 09:44:30 GMT 
ETag: "21f0070-13079ae-5041cff289b80" 
Accept-Ranges: bytes 
Content-Length: 19954093 
X-Powered-By: PleskLin 
Content-Range: bytes 1-19954093/19954094 
Content-Type: video/mp4 

任何想法,为什么阿帕奇与范围恐慌:字节0〜

回答

2

更新Apache到2.2.27解决了这个问题。