This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

https page redirects to https instead of http

 
Evan Smith
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I set up a basic example here: https://c8dev.geigerstores.com/preview/unsecure.jsp
This file contains:

The result is sending a request with a secure transport (https) instead of http. What would be causing this?
 
Paul Clapham
Sheriff
Pie
Posts: 20763
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I click on your link to send a request to your redirecting page, I get a 302 response (as expected) with Location="https://www.iana.org/domains/example". So, your server is doing the change from http to https.
 
Evan Smith
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. Is this an apache configuration issue? I have a load balancer passing x-forwarded-proto. Any advice or direction for finding out how to resolve this redirection from http to https?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check the target web application which is hosted at the "domains" context root. It could have been configured to serve the "example" resource as CONFIDENTIAL (in web.xml) and hence the server might be redirecting it to https.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic