0

So, I'm pretty new to apache and I'm having some issues finding a solution to my answer.

I have a domain name abcdefg.com (for example) and I have a public facing Fedora apache webserver on my home network at 192.168.10.10. I then have another machine that is a proxmox VE server at 192.168.10.20.

I know I can forward ports and just type [https://abcdefg.com:8006] to get to my proxmox server, but I want to be able to go to abcdefg.com/proxmox and it then somehow make a call to [https://192.168.10.20:8006] internally (https is required).

Can anyone point me in the right direction? I don't need to be spoonfed, I'm just not sure where to start looking. I've already figured out how to use the "Location" tags but its not working for this, seems to be a bit more involved.

--Cheers

4

1 回答 1

1

您需要运行反向代理服务器,Apache 可以使用一些额外的模块来完成。这将侦听特定端口(在您的情况下假设端口 444)并将请求发送到您在幕后指定的任何 IP 和端口。

有关如何反向代理站点的信息,请参阅以下链接:简单的 Apache 反向代理示例

只需更改mywebsite.jamescoyle.net引用以指向端口 8006 上的内部 proxmox 框 - 例如。

ProxyPass https://192.168.10.20:8006/
ProxyPassReverse https://192.168.10.20:8006/
于 2013-08-19T23:48:18.183 回答