如何使用Apache作为代理

问题描述 投票:0回答:1

我的家用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 web proxy admin cloudflare
1个回答
0
投票

您可以在Apache ProxyPass下面使用。

SSLProxyEngine On
ProxyPass /audio https://192.168.0.100:8000/audio
ProxyPassReverse /audio https://192.168.0.100:8000/audio
© www.soinside.com 2019 - 2024. All rights reserved.