How to install Gitlab in a VM on a production server?
- by Michaël Perrin
I have a production server running Ubuntu 12.04 and I would like to install on it a VM with Gitlab (using Vagrant and Virtualbox).
Let's say that the address to access Gitlab is gitlab.mydomain.com .
The DNS zone has been configured to point to the IP address of the server.
I want users to be able to access to Gitlab (either for pushing to a repository, or for accessing to the web interface) from the outside.
The VM has been configured to have an IP address.
It means that when browsing http://gitlab.mydomain.com for instance, the request has to be forwarded to the VM on the server, ie. to the VM IP address.
What are the ways to configure this? Can Apache be used as a proxy?
In this case, I guess it only works for HTTP requests, but not for pushing to a Git repository on the VM.