简体   繁体   English

Apache反向代理视频流

[英]Apache reverse proxy for video streaming

I am new to Apache. 我是Apache的新手。

I have a situation in which my server PC is connected to both WiFi as well as wired(Ethernet) network. 我的服务器PC同时连接到WiFi和有线(以太网)网络。

The situation is displayed in following image.(image is in pastebin) Mynetwork architecture 下图显示了这种情况。(图像在pastebin中) Mynetwork体系结构

I am able to watch HTTP stream from the IP camera in my server PC (same subnet). 我可以从服务器PC(相同子网)中的IP摄像机观看HTTP流。

But how can I create a webpage (hosted in my server PC) from which users from the userpc should be able to watch stream from the IP cameras. 但是,如何创建一个网页(驻留在服务器PC中),userpc中的用户应该可以从该网页观看IP摄像机的流。

Is it possible to use Apache reverse proxy to solve this issue? 是否可以使用Apache反向代理来解决此问题?

Yes, in this scenario deploying Apache as reverse proxy in server PC can solve the issue. 是的,在这种情况下,在服务器PC中将Apache部署为反向代理可以解决此问题。 Following steps need be done to setup Apache as reverse proxy: 需要执行以下步骤将Apache设置为反向代理:

  • Enable mod_proxy and mod_proxy_http Apache modules 启用mod_proxy和mod_proxy_http Apache模块
  • Set 'ProxyPass' directive as below 如下设置“ ProxyPass”指令

    ProxyPass <Path-accessed-from-userPC> <URL-to-access-HTTP-stream-at-serverPC> ProxyPass <从userPC访问的路径> <在ServerPC上访问HTTP流的URL>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM