I want the files with extension .mov to be served as Content-Type=video/mp4. I've read from different sources that both files can be served as video/quicktime (default) and video/mp4 and the browsers will be able to handle it. The thing is that if you don't have Quicktime installed, when the content is served as video/quicktime the file is downloaded as a regular file (like a .rar or .pdf). If the Content Type of the same file is served as video/mp4, the moder browsers plays them in the browser, without downloading anything.
I've added the following lines to the apache2.conf file:
AddType video/mp4 .mov AddType video/test .test
And I have two files in my server: /var/www/video.mov and /var/www/foo.test.
If I execute:
wget -O- -S localhost/foo.test The ContentType is video/test (response code 200) wget -O- -S localhost/video.mov The ContentType is video/quicktime (response code 200)
If I execute with this unexsisten files:
wget -O- -S localhost/unexistent.test The ContentType is video/test (response code 404) wget -O- -S localhost/unexistent.mov The ContentType is video/mp4 (response code 404)
I don't understand why when I make a request to an existent .mov file is served as video/quicktime and not the previusly defined video/mp4.
The apache version I'm using is 2.2.16-6+squeeze11. Do you have any clue of what can be happening? Can another directive be overwriting my configuration? (I've searched in the /etc/apache for other references of quicktime or .mov and there is just the "AddType video/mp4 .mov" one. Any ideas on other tests I should to in order to fix the problem?
Thanks in advance.