messed up nginx virtual host
Created by: dqlopez
Followed the new way to download and install GitLab from here https://about.gitlab.com/downloads/, selected Ubuntu 14.04 then did the rest until sudo gitlab-ctl reconfigure
. All went well, not until I go to the hostname/external URL on which I wish to login on GitLab. Seems that the nginx is not properly configured. I checked my sites-enabled
folder and seems that there is no GitLab vhost generated. I wonder since the installation is automatic, why it didn't add a virtual hosts configuration on my nginx.
Add to that, I tried to restart my nginx, however it fails now after I installed GitLab. This was the error from nginx log.
2014/09/16 08:57:50 [emerg] 17805#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 08:57:50 [emerg] 17805#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 08:57:50 [emerg] 17805#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 08:57:50 [emerg] 17805#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 08:57:50 [emerg] 17805#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 08:57:50 [emerg] 17805#0: still could not bind()
2014/09/16 09:29:13 [emerg] 20382#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 09:29:13 [emerg] 20382#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 09:29:13 [emerg] 20382#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 09:29:13 [emerg] 20382#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 09:29:13 [emerg] 20382#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2014/09/16 09:29:13 [emerg] 20382#0: still could not bind()
UPDATE: Seems that I now have two(?) nginx in my system. Whenever I access my domains it all goes to the GitLab login page now. Clarifications here, please. @randx