File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webapp as proxy

 
Robert Garrido
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 6 different web-apps (let's call their contexts /wa1, /wa2 ... /wa6) running in port 8080.

I have another web-app named /proxy running on port 80. As the name suggests this web-app does proxy functions for the other 6 web-apps. This proxy basically is meant to go to any of the web-apps and follow any number of redirects until a final page is reached, so external clients always get the needed resource in one shot.

For instance, a client requests: http://hostname:80/wa1/resourcex, then the request should actually go to http://hostname:80/proxy, after that the proxy makes all calls following redirects to http://hostname:8080/wa1/resourcex (where the actual web-app context runs) and returns the final result to the client.

I can't modify any of the 6 original webapps, however I can do whatever I want with the proxy one. How can I get this done?

Please assist. Thanks in advanced!
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this can be done or not (or if it is the right way or not), but I think you'll have to run your proxy as ROOT in your Tomcat (if you are using tomcat) i.e. your proxy should run on the default/root context. I assume that your server on port 8080 and 80 are different. I also know of ngnix if that would be useful (it was used on one of my earlier sites that I worked on but I don't know much about it)...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic