PDA

View Full Version : Remote web server IP


sivamscs
01-09-2008, 11:58
Hi all,

Im using two web servers. Im getting all the requests from server1 to server2 including hidden fields. But before processing the request, I would like to confirm whether it has come from the server1 or not. For this, I need the IP address of the server that comes along with the request. How can I get the IP address of any request. Using getRemoteAddress() gives the IP of client machine. But I want the IP of my server1.
I h've tried <valve allow="",deny="" /> but of no use. Pls. tell me how to solve this issue..

Tons of thanks in advance.....

kjkoster
01-09-2008, 13:56
Dear sivamscs,

So if I understand correctly, you have two Apache web servers that server browser pages and then use mod_jk or mod_proxy to forward a subset of those requests to a Tomcat server?

Is there a reason don't you just firewall off all access to Tomcat? It sounds like noone else should have access.

Kees Jan