我有一个非 Apache 服务器监听端口 8001 和 Apache 监听端口 80。我希望某个虚拟域实际上由非 Apache 服务器通过端口 80 提供服务。
例子:
<VirtualHost *:80>
Servername example.com
# Forward this on to the server on port 8001
</VirtualHost>
我想我可以用 mod_proxy 和 ProxyPass 来做到这一点。
ProxyPass * http://www.example.com:8001/
但这不起作用。