i have apache configured with tomcat with two virtual hosts
<Host name="site1.com" appBase="/site1".../>
<Host name="site2.com" appBase="/site2".../>
Now site1 query data from site2 using http and both are on the same server. is there a way to make site1 query site2 using localhost or 127.0.0.1 IP? will 127.0.0.1:8080/site2 work?