Bug 1268922 - Sites redirect to a '/app'
Summary: Sites redirect to a '/app'
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Networking
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks: 1277547
TreeView+ depends on / blocked
 
Reported: 2015-10-05 16:21 UTC by Ryan Howe
Modified: 2019-10-10 10:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-11 14:28:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ryan Howe 2015-10-05 16:21:15 UTC
Description of problem:

- Sites redirect to a '/app'

Version-Release number of selected component (if applicable):
Online 

How reproducible:
Unable to reproduce

Actual results:
- At times Alias will redirect to /app


Expected results:
- Nothing redirected to /app

Additional info:

Still trying to pin point/recreate issue

Comment 1 Andy Grimm 2016-01-05 21:48:21 UTC
A bit of clarification here:

Redirection to /app is something that happens specifically in OpenShift Online when the front-end apache server thinks that the Host in the HTTP request does not match any VirtualHost definitions.  so, for example, if you hit:

http://ex-std-node500.prod.rhcloud.com/

it will redirect you to:

https://ex-std-node500.prod.rhcloud.com/app

As far as I know, this is a relic from the all-in-one dev environments, where accessing the host by its hostname takes you to the OpenShift console.

We can remove or change this redirect.  It should be raising a 5xx status instead.  The problem remains, though, that on a couple of nodes, we are seeing hits apparently 'fall through' the VirtualHost definitions to this redirect.  It's only happening for about one out of every 30,000 hits.  That's really what this bug is about.

Comment 2 Andy Grimm 2016-01-11 14:28:13 UTC
After improving our logging, I do not believe there is a bug in Apache or OpenShift.  If anything, the bug is in varnish, and the varnish binaries are part of the downloadable cartridge.


Note You need to log in before you can comment on or make changes to this bug.