歡迎您光臨本站 註冊首頁

請教nginx mp4模塊的應用配置

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教nginx mp4模塊的應用配置

採用
nginx-0.7.9.tar.gz
nginx_mod_h264_streaming-2.2.0.tar.gz

cd ~/nginx-0.7.9
./configure --add-module=$HOME/nginx_mod_h264_streaming --sbin-path=/usr/local/sbin --with-debug

這樣編譯

配置文件中:
server {
        listen       80;
        server_name  feinao.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   /www;
            index  index.html index.htm;
        }

        location ~ \.mp4$ {
                mp4;
        }
}


但是訪問其他html文件可以

但是mp4文件就報錯:
參考這裡的資料
http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Nginx-Version2


有沒有配過的分享一下經驗

[火星人 ] 請教nginx mp4模塊的應用配置已經有401次圍觀

http://coctec.com/docs/service/show-post-21925.html