2014-09-29 51 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解決了這個問題。