I have a Linux box with 2 NICs. I installed and configured Apache 2 for reverse proxy.
Each NIC has its own IP address and I was wondering if there is any way to redirect the requests via Apache based on the IP address that was used to get to the box.
eth0 has IP
If I browse to
http://100.100.100.100/AppName/App I want it to redirect to
126.96.36.199 and if I browse to
http://188.8.131.52/AppName/App I want it to go to
Right now the configuration for Apache is set as follow
ProxyPass /AppName/App http://184.108.40.206/AppName/App ProxyPassReverse /AppName/App http://220.127.116.11/AppName/App
So anything going to
/AppName/App will be redirected to
I was reading something about
ProxyHTMLURLMap but I don't know whether this is something that might help.
Any idea how to do this? Thanks!