我的家用PC上有在线广播网站,ISP的静态IP和带有Iptables的路由器。我也使用Cloudflare隐藏我的真实IP。网站工作正常,但在线广播却不能,因为Cloudflare仅代理certain traffic和端口。这是玩家:
<audio >
<source src="https://example.com/audio" >
</audio>
我想用我的Apache将“ https://example.com/audio”代理为“ https://192.168.0.100:8000/audio”。我当前的Apache配置:
<VirtualHost *:443>
ServerName example.com
ServerAdmin [email protected]
DocumentRoot /var/www/html/example
SSLEengine on
SSLCertificateFile ...
SSLCertificateKeyFile ...
</VirtualHost>
我应该如何修改我的配置?
您可以在Apache ProxyPass下面使用。
SSLProxyEngine On
ProxyPass /audio https://192.168.0.100:8000/audio
ProxyPassReverse /audio https://192.168.0.100:8000/audio