Bug 1094070

Summary: Apache 302 redirect to https
Product: OpenShift Online Reporter: tunedconsulting
Component: UnknownAssignee: Dan McPherson <dmcphers>
Status: CLOSED NOTABUG QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.xCC: libra-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-05 00:31:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tunedconsulting 2014-05-04 22:40:33 UTC
Description of problem:
I added a custom alias to my app (www.spacexplore.it) via rhc, and now every request gets wrongly redirected with a 302


How reproducible:
Surf to spacexplore.it in the browser


Actual results:
Apache redirect to https://<app_name>-<app_domain>.rhcloud.com/app


Expected results:
The app homepage at chronos-novumorganum.rhcloud.com should appear in the browser

Additional info:

curl -k "http://www.spacexplore.it" 

output:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://www.spacexplore.it/app">here</a>.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at www.spacexplore.it Port 80</address>
</body></html>

Comment 1 tunedconsulting 2014-05-04 22:43:48 UTC
I tried to delete the alias and add it again via rhc.

Same result.

Comment 2 tunedconsulting 2014-05-04 23:28:09 UTC
Flushed the DNS cache with no improvement.

Is it possible it happened because of a conflict of aliases with another app?

Comment 3 tunedconsulting 2014-05-05 00:26:14 UTC
Just a problem of really slow DNS propagation and cache in our network.
Thanks Dan. (: