aspose file tools*
The moose likes Tomcat and the fly likes https page redirects to https instead of http Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "https page redirects to https instead of http" Watch "https page redirects to https instead of http" New topic
Author

https page redirects to https instead of http

Evan Smith
Greenhorn

Joined: Feb 13, 2013
Posts: 2
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
Bartender

Joined: Oct 14, 2005
Posts: 18136
    
    8

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

Joined: Feb 13, 2013
Posts: 2
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

Joined: Jul 20, 2005
Posts: 9327
    
109

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.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: https page redirects to https instead of http
 
Similar Threads
help needed for https redirection
A 404 Error, need help configuring web.xml
SSL certificates for each one of the Tomcat Instances on single machine
SSL Post redirection
how to redirect from https to http