Configuring Owncloud + Gitlab + Regular Webserver! Help

November 15, 2016 2.1k views
Apache Git Nginx Ubuntu 16.04


Im using Ubuntu 16.04 for this. I need help configuring Gitlab, Owncloud, and a regular webserver all in one.

I first installed LAMP as shown here:

I then installed OwnCloud as shown here:

I then installed Gitlab as shown here:

Then I configured Apache to connect to Gitlab using this guide:

Now, my ideal setup is to have a subdomain point to each service as shown here:

  • points to owncloud
  • points to gitlab
  • points to my regular apache html folder (the one located at /var/www/hml/)
  • redirects to

After I configured Apache to connect to gitlab, all of a sudden, all 3 subdomains all go to Gitlab. I can no longer see the default apache2 html folder or my owncloud ( now redirects to gitlab)

How do I fix this?

  • Can you share your current apache configuration for the three subdomains? Seeing this might help us to identify an issue and help you troubleshoot.

  • Sure, this is what is in my sites-available folder:




    I did not touch 000-default or default-ssl, also I do not have any SSL configured yet.

  • The first thing that jumps out is that it appears you only have a single name based virtualhost configured in here for

    You'll need to also have virtualhosts configured with ServerName or ServerAlias set to and pointed to each webroot.

    Without these, your server will not know how to handle those differently and will default to serve them simply by using the first virtualhost defined in your configuration.

Be the first one to answer this question.