After enabling Apache (ubuntu 14.04) GitLab gives 502

You’d have to use a non bundled server, see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md#using-a-non-bundled-web-server and also read this similar topic Setting up Gitlab on Ubuntu 14.04 with Apache2 without owning a domain name