Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Handling X-FORWARDED-PROTO in java apache-tomcat

0

43 views

Can any one guide me in working with X-FORWARDED-PROTO in Java apache-tomcat.

The application setup is in such a way that tomcat talks with apache webserver, which in turn talks with Cisco LoadBalancer, finally the balancer publishes the pages to the client (tomcat -> apache2 -> load balancer -> client).

The SSL Certificate is installed in LoadBalancer and its handling https request. My requirement is to make the application behave in such a way that it uses the X-FORWARDED-PROTO and change the pages as HTTP or HTTPS.

Checking on the header files of my webpages i could not find the X-FORWARDED-PROTO parameter. I don't have access to the LoadBalancer configuration either, and the IT has suggested us to use the X-FORWARDED-PROTO to differentiate between HTTP & HTTPS request.

Is there any configuration to be done in tomcat or apache level so that it will return the X-FORWARDED-PROTO parameter. Or is it that the configuration should be handled in LoadBalancer.

asked April 21, 2011 2:58 am CDT
posted via StackOverflow

0 Answers

Be the first to answer this question

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Java/apache/tomcat
March 15, 2011
Java ssl tomcat
March 11, 2011
Doubt in JAVA and tomcat
January 12, 2011