BZ1168034 - nginx configuration is broken when multiple applications..

* nginx configuration is broken when multiple applications with the same
  name are created under different domains
Merge pull request #5985 from calfonso/bz1168034

Merged by openshift-bot