如何在使用apache的托pipe网站的相同物理服务器上设置反向代理?

我如何使用一台服务器来完成以下两项任务:

  1. 服务于http://foo.bar.com上的网站
  2. 使用反向代理将所有用于http://loremipsum.bar.com的stream量指向“http:// www。acme.com:87 60 / Application”。

该网站已经存在和configuration正确,我只需要添加#2的function。 我怎样才能在同一台物理服务器上做到这一点? 我想象的答案是使用虚拟主机,但我不知道如何在一个物理盒子上做两个。

你只需要为loremipsum.bar.com创build一个新的VirutalHost部分。

它看起来像这样:

 <VirtualHost *:80> ProxyPass / http://www.acme.com:8760/Application ProxyPassReverse / http://www.acme.com:8760/Application ServerName loremipsum.bar.com </VirtualHost>