簡體   English   中英

https 上的 FFServer

[英]FFServer over https

我們目前通過 ffserver 通過“http”提供視頻/音頻提要,即http://127.0.0.1:8000/folder/feed1.mjpg

但是,現在我們需要通過“https”將提要添加到安全頁面,因此我們需要執行以下操作https://127.0.0.1:8000/folder/feed1.mjpg

我搜索了網絡和文檔,但沒有找到任何關於 ffserver 和 https 的內容。
這可能嗎? 如果是這樣,有人能指出我實現這一目標的方向嗎?

我遇到了同樣的問題 - 將 ffserver 的非加密 WEBM 流嵌入到 HTTPS 網站會導致瀏覽器的“混合內容”警告。 我通過使用帶有 mod_proxy 的 Apache 解決了這個問題。 我基本上遵循本教程: https : //www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

簡而言之,我只做了以下 3 個步驟:

  1. 啟用代理模塊

    a2enmod proxy a2enmod proxy_http
  2. 使用以下指令在偵聽端口 443 的 Apache 中創建一個新的虛擬主機:

     <VirtualHost *:443> ServerName livestream.example.com ProxyPreserveHost On ProxyPass / http://0.0.0.0:8090/ ProxyPassReverse / http://0.0.0.0:8090/ SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost>
  3. livestream.example.com設置 DNS 記錄

我的 ffserver 與 Apache 運行在同一台服務器上,HTTP 端口為 8090,但我確信代理可以定向到任何其他 IP 地址。

這樣我就能夠將 WEBM 視頻流嵌入為https://livestream.example.com/somevideo.webm並擺脫混合內容警告。

(在 Ubuntu 16.04、Apache 2.4.18、ffserver 2.8.11 上測試)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM