I am using Apache mod_proxy to proxy a website on my LAN (mydomain2.com). I have the following settings for which everything works fine. When someone accesses http://mydomain1.com/
, it proxies http://mydomain2.com/
ProxyPass / http://mydomain2.com/
I would like to change this to do the following.
1. If someone accesses http://mydomain1.com/
then mydomain1.com is shown.
2. If someone accesses http://mydomain1.com/proxy/
then the domain http://mydomain2.com/
Is it possible to do this?
I tried changing the entry to
ProxyPass /proxy/ http://mydomain2.com/
This is not working when the proxied website (mydomain2.com) has html forms being submitted. Am I doing something wrong here?