worker_processes  1;

events
{
    worker_connections  1024;
}

http
{
    include         mime.types;
    default_type    application/octet-stream;
    sendfile        on;
    keepalive_timeout   65;

    server
    {
        listen        8088;
        server_name   localhost;
        root      D:/DemoServer/src/test_applications/nginx-www-root;

        location /
        {
            index    index.htm default.htm default.aspx;
        }
       
        #对于扩展名是ASP的请求,反向代理IIS
        location ~ \.(asp)$
        {
            proxy_pass    http://127.0.0.1:8081;
        }
 
  #反向代理mono fastcgi
  location ~ \.(aspx|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)$
  {
            fastcgi_pass    127.0.0.1:9000;
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include         fastcgi_params;
        }
       
        #反向代理php cgi
        location ~ \.(php|php3)$
        {     
   fastcgi_pass   127.0.0.1:9001;          
   fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;     
   include        fastcgi_params;
        }

        #支持拖动的flv视频服务器,即支持aa.flv?start=10001
        #可以使用jwplayer.swf来播放
        #要支持拖动,视频还必须有关键帧信息,可使用yamdi来添加关键帧。
        location ~ \.(flv)$
        {
            flv;
           
            limit_rate_after  2m;
            limit_rate    256k;
        }
    }
}

----------------------------------------------------
jwplayer5.x基本使用方法:

<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
  name="player" width="640" height="360">
 <param name="movie" value="jwplayer5.x.swf" />
 <param name="allowfullscreen" value="true" />
 <param name="allowscriptaccess" value="always" />
 <param name="flashvars"
  value="file=http://localhost:8088/test1.flv& streamer=start&image=images/test2.jpg&skin=skins/darksunset.zip&type=http" />
 
 <embed
  type="application/x-shockwave-flash"
  id="player"
  name="player"
  src="jwplayer5.x.swf"
  width="640"
  height="360"
  allowscriptaccess="always"
  allowfullscreen="true"
  flashvars="file=http://localhost:8088/test1.flv& streamer=start&image=images/test2.jpg&skin=skins/darksunset.zip&type=http" />
</object>

 


本文链接地址: nginx的基本配置:nginx.conf示例与支持拖动的flv视频服务
https://blog.qingfengju.com/index.asp?id=309

分类:Web开发 查看次数:4982 发布时间:2013/1/10 15:16:40

在CoLinux上安装debian-squeeze,启动时在如下步骤停留时间过长:
Setting up console font and keymap

解决方法:

apt-get install console-data
apt-get install console-tools
dpkg-reconfigure console-setup

参考:
http://www.tekcited.net/colinux-running-linux-inside-windows/
 


本文链接地址: 在CoLinux上安装debian-squeeze,启动时在如下步骤停留时间过长:
https://blog.qingfengju.com/index.asp?id=307

分类:Linux 查看次数:5357 发布时间:2013/1/8 22:48:34