i-MSCP with Gitlab

  • [English]
    Hey,
    i have a Ubuntu server, on which i-MSCP is installed.
    I also have a subdomain called "gitlab. ***. com". At this address, I want to be able to reach gitlab. Just installed gitlab for testing, but it destroyed i-MSCP because it overwrote or changed the Apache configuration files.
    So how can I have i-MSCP running and on the subdomain gitlab?
    With kind regards


    But I still have a problem somehow.
    Just called the services that listen to port 80 with "netstat -tulpn | grep: 80". There's this:
    1927/config. ru listening to port 8080.
    Apache2 was on port 80 and
    150445/nginx on port 8060


    I just stopped Apache2 to see what was happening. Then I updated my domain and then came the gitlab login, because nginx now listens to port 80. But why? and how can I change that?


    [Deutsch]
    Also deutsch ist meine eig. Sprache aber ja :)


    Hey,
    ich habe einen Ubuntu-Server, auf dem i-MSCP installiert ist.
    Ich habe auch eine Subdomain namens "gitlab.***.com". Unter dieser Adresse möchte ich gitlab erreichen können. Gitlab wurde nur zum Testen installiert, aber es hat i-MSCP zerstört, weil es die Apache-Konfigurationsdateien überschrieben oder geändert hat.
    Wie kann ich i-MSCP also laufen lassen und auf der Subdomain gitlab?
    Mit freundlichen Grüßen


    Aber ich habe irgendwie noch ein Problem.
    Habe gerade mal mit "netstat -tulpn | grep :80" die Dienste aufgerufen, die auf den Port 80 hören. Da ist einmal:
    1927/config.ru der auf den Port 8080 hört.
    Apache2 war auf Port 80 und
    150445/nginx auf Port 8060


    Habe dann gerade testweise Apache2 gestoppt um was zugucken. Habe dann meine Domain aktualisiert und dann kam der gitlab Login, weil nginx jetzt auf den Port 80 hört. Aber wieso? und wie kann ich das ändern?

  • gitlab use nginx webserver and imscp panel too , you must disable this in the configuration file for use your current apache webserver , take a look of this .
    But you must know what you do before changing any config of your apache installation.
    Regard

    - Distribution: Debian | Release: 9.12 | Codename: stretch
    - i-MSCP Version: i-MSCP 1.5.3 | Build: 2018120800 | Codename: Ennio Morricone
    - Plugins installed: ServerDefaultPage (v. 1.3.0),Postgrey (v. 1.3.0), PolicydWeight (v. 1.3.0), ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), RoundCubePlugins (v 2.0.2), LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), InstantSSH (v 5.0.1), CronJobs (v 1.4.1), PolicydSPF (v 1.2.0), Postscreen (v 1.2.0), Monitorix (v 1.2.2) & SpamAssassin (v 2.1.0)

  • Yes, my subdomain works yes. But when I go to my normal domain, I also get to the gitlab site. The content of the htdocs folder should appear here.

  • are you sure your nginx is start ? imscp-panel is running ?if is ok look your nginx configuration file are always the auto-generated imscp ?

    - Distribution: Debian | Release: 9.12 | Codename: stretch
    - i-MSCP Version: i-MSCP 1.5.3 | Build: 2018120800 | Codename: Ennio Morricone
    - Plugins installed: ServerDefaultPage (v. 1.3.0),Postgrey (v. 1.3.0), PolicydWeight (v. 1.3.0), ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), RoundCubePlugins (v 2.0.2), LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), InstantSSH (v 5.0.1), CronJobs (v 1.4.1), PolicydSPF (v 1.2.0), Postscreen (v 1.2.0), Monitorix (v 1.2.2) & SpamAssassin (v 2.1.0)

  • Yes, the nginx configuration file is automatically generated by imscp. If you click on "i-MSCP", you will see that the i-MSCP works and if you click on "Gitlab", you will see that you will be taken to the gitlab homepage. But if you also go to my normal domain "Dousy.de", you will also come to the homepage of gitlab...

  • you must have an error on your VirtalHost conf

    - Distribution: Debian | Release: 9.12 | Codename: stretch
    - i-MSCP Version: i-MSCP 1.5.3 | Build: 2018120800 | Codename: Ennio Morricone
    - Plugins installed: ServerDefaultPage (v. 1.3.0),Postgrey (v. 1.3.0), PolicydWeight (v. 1.3.0), ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), RoundCubePlugins (v 2.0.2), LetsEncrypt (v 3.6.0), PhpSwitcher (v 5.0.5), InstantSSH (v 5.0.1), CronJobs (v 1.4.1), PolicydSPF (v 1.2.0), Postscreen (v 1.2.0), Monitorix (v 1.2.2) & SpamAssassin (v 2.1.0)

  • @exclusivatom

    • Configure gitlab in such way that it will listen on 127.0.0.1:8080
    • Add your gitlab subdomain to i-MSCP panel and enable redirect (proxy feature)

    If you need a howto, I can provide one a bit later.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Do you have a time when you can exactly?

    I can do it for tomorrow morning ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206