BZ1168034 - nginx configuration is broken when multiple applications..

* nginx configuration is broken when multiple applications with the same
  name are created under different domains