Click here to Skip to main content
15,847,653 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

First let me explain the topic,
the scenario is that I've an java web application on a server (let suppose APP-SERVER) and an external access is configured to this application using apache2.2 on another server (let suppose MAIN-SERVER) that actually from outside first request comes to apache on MAIN-SERVER and then this apache redirects this request to another apache on MAIN-SERVER where application is installed and then this apache redirect this request to the application on this same server (MAIN-SERVER).

actually this is something that is actually configured, but now the issue is some time the external access work very fine for long time 20-30days with no issue and in case it goes down then I go to the site and restart apache on both servers and then its become working again ... but some time this external access goes down again again ... and the same is happening to me now a days and this time it goes down almost every day even twice in a day and client is very upset now.

I'm searching the net since last 4day but still unable to find the solution or any other better or easy way to do this redirection. so please suggest me some good mechanism to configure external access (because current conf goes down again n again)

note: MAIN-SERVER is already configured by the client IT to recieve external access now what I've to configure is to redirect request from this server to the server having Application installed (APP-SERVER).

In one thing i succeeded today is to add index.html page in Apache having some simple javascript code that redirects to application on another server using its IP e.g.
http://APP-SERVER IP:8080/application
but i think this will not works because it redirects the complete URL to APP-SERVER and externally this APP-SERVER is not accessible.

so please at-least any suggestion that helps me in resolving this issue or to setup any better mechanism for this scenario

THANKS REALLY BECAUSE I'M REALLY UPSET.


Also one more thing for my correction so my google-ing should on right path .... that this scenario is called some thing like "TOMCAT REDIRECT TO ANOTHER SERVER" ... correct ??
Posted
Comments
Sandeep Mewara 14-Jun-12 16:26pm    
Update from OP:
BY THE WAY JUST ONE MORE IDEA CAME IN MY MIND ... THAT IS ALSO MUCH EASIER FOR ME I THINK ..... THAT THEY(CLIENT) HAVE THERE OWN OTHER MANY APPLICATIONS THAT ARE BUILD ON ASP.NET AND THEY USING IIS SERVER ON SAME MAIN-SERVER AND REDIRECT REQUESTS THERE TO SOME SERVER WHERE THERE APPLICATIONS ARE INSTALLED ... SO ACTUALLY IM FARE MORE AWAY FROM DOT NET WORLD ... SO PLEASE TELL ME THAT CAN I USE IIS SERVER FOR THIS PURPOSE FOR MY APPS ???? ON GOOGLE I FOUND THAT ITS POSSIBLE SO JUST FOR CONFIRMATION ASKING BCS HERE YOU KNOW THE SITUATION TOO ...
Sandeep Mewara 14-Jun-12 16:26pm    
BTW, posting everything in CAPS is considered shouting and rude. Please avoid it.
khurram_shahzad 15-Jun-12 2:43am    
okkkkey :)

1 solution

Go to the Apache documentation[^] and read up on redirection (mod_rewrite, etc) and proxying (mod_proxy). You should be doing this at the Apache level, not Tomcat.
Also, if you join the Apache users mailing list, you will be able to get help about why it fails in the first place. (They will want configuration information and logs from the time of the failure.)
Better still, before you join the list, search the Apache website. There is almost certainly someone else's story about a very similar issue.

Peter
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900