apache2代理重定向配置

apache2代理重定向配置,apache,Apache,我意识到这已经被问了很多次了,但我似乎仍然不能让它工作。这是我的情况。我的网络上有两台服务器。服务器A是面向公众的,它承载我的网站。我的第二台服务器也有一个apache运行的web应用程序,我想从外部访问它。我不确定如何配置这个。我当前的配置如下所示 NameVirtualHost *:2323 <VirtualHost *:2323> ProxyPass / http://192.168.1.7/ampache ProxyPassReverse / http://1

我意识到这已经被问了很多次了,但我似乎仍然不能让它工作。这是我的情况。我的网络上有两台服务器。服务器A是面向公众的,它承载我的网站。我的第二台服务器也有一个apache运行的web应用程序,我想从外部访问它。我不确定如何配置这个。我当前的配置如下所示

NameVirtualHost *:2323
<VirtualHost *:2323>
    ProxyPass / http://192.168.1.7/ampache
    ProxyPassReverse / http://192.168.1.7/ampache
    servername slave-1
    ProxyPreserveHost On
    ProxyRequests Off
</VirtualHost>
NameVirtualHost*:2323
ProxyPass/http://192.168.1.7/ampache
ProxyPassReverse/http://192.168.1.7/ampache
服务器名从-1
代理主机
代理请求关闭
因此,我希望上的所有流量重定向到192.168.1.7/ampache


谢谢

我通过以下操作修复了它

ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
    Order allow,deny
    Allow from all
</Proxy>
ProxyPass /airsonic http://192.168.1.7:8088/airsonic
ProxyPassReverse /airsonic http://192.168.1.7:8088/airsonic
ProxyRequests关闭
代理主机
命令允许,拒绝
通融
ProxyPass/空气超音速http://192.168.1.7:8088/airsonic
ProxyPassReverse/airsonichttp://192.168.1.7:8088/airsonic