我希望有以下事情发生:
我有以下的Apacheconfiguration。 但是,这既有http://www.example.com/也有http://www.example.com/wiki是http://www.example.com:8080/的代理。 我怎样才能纠正这一点?
<VirtualHost *:80> ProxyRequests Off ProxyPreserveHost On <Proxy /wiki> Order allow,deny Allow from all </Proxy> ProxyPass /wiki http://www.example.com:8090/ ProxyPassReverse /wiki http://www.example.com:8090/ <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://www.example.com:8080/ ProxyPassReverse / http://www.example.com:8080/ </VirtualHost>
我意识到,我有我的托pipe在8090设置为的网站的Tomcat server.xml文件
<Context path="/wiki"
因此,我需要有
ProxyPass /wiki http://www.example.com:8090/wiki ProxyPassReverse /wiki http://www.example.com:8090/wiki
在Apacheconfiguration中。