Red Hat Bugzilla – Bug 1268922
Sites redirect to a '/app'
Last modified: 2016-01-11 09:28:13 EST
Description of problem:
- Sites redirect to a '/app'
Version-Release number of selected component (if applicable):
Unable to reproduce
- At times Alias will redirect to /app
- Nothing redirected to /app
Still trying to pin point/recreate issue
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:
it will redirect you to:
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.
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.