Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Try removing http from the line 13 in pastebin file you linked (New Server Configuration)
You current have
...
<VirtualHost *:80>
ServerName http://gitpage.mysite.com
ServerSignature Off
...
Change to
...
<VirtualHost *:80>
ServerName gitpage.mysite.com
ServerSignature Off
...
It looks okay, I’m not really sure why it’s not working but try this, maybe you’ll see correct blocks
Ensure that your Apache virtual hosts (nextcloud.conf and gitlab-apache24.conf) are correctly configured to handle requests for their respective domains.
NextCloud VirtualHost (nextcloud.conf):
<VirtualHost *:80>
ServerName nextcloud.mysite.com
DocumentRoot /var/www/nextcloud
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/nextcloud_error.log
CustomLog ${APACHE_LOG_DIR}/nextcloud_access.log combined
</VirtualHost>
GitLab VirtualHost (gitlab-apache24.conf):
<VirtualHost *:80>
ServerName gitpage.mysite.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8181/
ProxyPassReverse / http://127.0.0.1:8181/
ErrorLog ${APACHE_LOG_DIR}/gitlab_error.log
CustomLog ${APACHE_LOG_DIR}/gitlab_access.log combined
<Location />
Require all granted
ProxyPassReverse http://127.0.0.1:8181/
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Key Points:
ServerName.ProxyPass and ProxyPassReverse directives in the GitLab configuration to forward requests to the internal port GitLab is listening on (port 8181 in this case).