Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a scenario like there are two servers

1.On the first server where apache and tomcat are running on different ports.For eg ip would be 172.168.2.19

2.There is a second server where jboss and kvsms are running.for eg ip w ould be 172.168.2.20

3.IF a mobile client is trying to hit the first server with url https://172.168.2.19/....../...../....If one resource he is accesing is in first server and the second item has to be fetched from the second server.

how the request can be redirected to the second server without knowing the second servers ip.

how the tunneling can be done from the first server to the second?

Hope you gys understood the question

share|improve this question

1 Answer 1

You probably want to set up a reverse proxy with Apache that will deal with the client connections to the backends. There's plenty of documentation here and elsewhere that will tell you how to do this. You'll need to plan out the URIs that will be proxied to the jboss and kvsms services.

share|improve this answer
    
Thanks...Where should the proxy be configured and how –  developer Apr 4 '12 at 13:41
    
In Apache. Look at their documentation, in particular: httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse –  cjc Apr 4 '12 at 13:42
    
my question is reverse proxy has to be configured in the first server or the second one –  developer Apr 4 '12 at 13:54
    
It should be configured in the Apache on the first server. –  cjc Apr 4 '12 at 13:55
    
can you tell me the steps and instructions to configure reverse proxy –  developer Apr 4 '12 at 17:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.