• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Redirecting from one server to another

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic