Welcome! Log In Create A New Profile

Advanced

nginx set flv Content-Type as plain/text

Posted by anon 
nginx set flv Content-Type as plain/text
April 17, 2011 05:13AM
Hi,
my nginx version is 0.8.54.
i try to stream flv files, but i can't.
i finally find why - the Content-Type defined as text/plain and not as video/x-flv like it should be.

my mime.types file contain video/x-flv definition.
i compile nginx with --with-http_flv_module, and add
location ~ \.flv$ { flv; }
(as i read from http://wiki.nginx.org/HttpFlvStreamModule)

i don't know why it don't change the content-type to the right one.

here is my config file:
(i comment out all the gzip & proxy things cause i thought that is the reason to my problem - but it isn't)
http://www.cue.co.il/i/cue-9bu9lnw04t.txt

i check the header response:

[root@server ~]# curl -I http://localhost:81/999.flv
HTTP/1.1 200 OK
Server: nginx/0.8.54
Date: Sun, 17 Apr 2011 08:32:01 GMT
Content-Type: text/plain
Connection: keep-alive
Last-Modified: Sun, 17 Apr 2011 07:19:28 GMT
ETag: "14810b-6c8e38c-4a118186e2000"
Accept-Ranges: bytes
Content-Length: 113828748


any suggestions?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 327
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready