运行现有网站的同时,配置FMS使用80端口代理rtmpt协议播放流媒体

转载:http://blog.csdn.net/shilian_h/article/details/5975203

 

运行现有网站的同时,配置FMS使用80端口代理rtmpt协议播放流媒体

 

网站已经安装apache+php,使用了80端口;安装了fms,使用了rtmp1935端口;

但是有很多场合客户端不能使用80端口以后的端口。比如说,很多酒店、图书馆等场合就不能80以外的端口。

现在打算使用让客户端使用80端口来浏览frm服务器的视频;

要怎么做啊...

使用rtmpt协议来播放?那怎么设置rtmpt的端口为80,同时,正在跑的网站也用80?

找过apache proxy的资料,发现好像是不能代理rtmp/rtmpt。于是另找办法,思路是要给主机加一块网卡。

问题解决了,其实方法很简单,fms本身就支持共用一个端口的功能。只是不了解fms的才费了那么多时间。

办法是:

1、 将apache+php的apache端口更改为8080。
httpd.conf

[java] view plain copy print ?
  1. Listen 8080 

<textarea style="display: none;" class="java" cols="50" rows="15" name="code">Listen 8080</textarea>
2、更改fms的配置。
fms.ini

[java] view plain copy print ?
  1. ADAPTOR.HOSTPORT = :1935,80 
  2. HTTPPROXY.HOST = :8080 

<textarea style="display: none;" class="java" cols="50" rows="15" name="code">ADAPTOR.HOSTPORT = :1935,80 HTTPPROXY.HOST = :8080</textarea>
3、先把apache和fms都停止,然后再重新启动。

4、完成。访问方法是网站:http://www.example.com/,视频连接是:rtmpt://www.example.com/vod;

解决办法参考:

http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WSE2A5A7B9-E118-496f-92F9-E295038DB7DB.html

结尾的其中一句:

If you want them to share a port, set FMS up as the proxy (as the default FMS setup does), put your webserver on an unused port, and change the  fms.ini HTTPPROXY_HOST setting to point to that port.

 

你可能感兴趣的:(java,apache,服务器,UP)