• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redirecting from one server to another

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I have a situation in which i need to redirect a request from a server to another server. Like i have a link 'Application2' which takes the user on one application to 'Application2'. How can do that in the following cases:

1. When the Source is an HTTP server and destination is an HTTP server too
2. When the Source is an HTTP server and destination is an HTTPS server
3. When the Source is an HTTPS server and destination is an HTTP server
4. When the Source is an HTTPS server and destination is an HTTPS server too

What are the configurations to be done in each of the cases? If the configuration is specific to the app server, then please explain in terms of Tomcat servlet engine

Regard,
sajee
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
The redirecting of a request will behave as follows

1. When the Source is an HTTP server and destination is an HTTP server too
THIS WILL NOT BE A PROBLEM, YOU CAN USE JUST REDIRECT THE RESPONSE TO THE REQUIRED SERVER
2. When the Source is an HTTP server and destination is an HTTPS server
THIS WILL GIVE YOU A FORBIDDEN ERROR BECAUSE YOU ARE GOING FROM A INSECURE LINK TO SECURE LINK
3. When the Source is an HTTPS server and destination is an HTTP server
THIS WILL NOT BE A PROBLEM, YOU CAN USE JUST REDIRECT THE RESPONSE TO THE REQUIRED SERVER BECAUSE THIS IS GOING FROM SECURE TO INSECURE
4. When the Source is an HTTPS server and destination is an HTTPS server too
THIS WILL NOT BE A PROBLEM

I am not sure exactly what configuration to do in Tomcat, the point 2 is to do with the SSL configuration I guess.

Regards,
Sivaraman.L
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic