I wish to have the following happen:
- http://www.example.com/wiki be a proxy for http://www.example.com:8090/
- http://www.example.com/ be a proxy for http://www.example.com:8080/
I have the following Apache configuration. However, this has both http://www.example.com/ and http://www.example.com/wiki be a proxy for http://www.example.com:8080/. How can I correct this?
<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>