Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirecting from one server to another

 
Sajee Joseph
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
 
Sivaraman Lakshmanan
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic