Getting Gitlab to work alongside other Apache sites

I’ve installed Gitlab using the Omnibus method on Ubuntu 16.04 LTS and everything’s been working fine so far - but now I want to install MediaWiki, which also runs on Apache.

I followed these instructions on setting up MediaWiki, which includes installing apache2. When I go to localhost/mediawiki it just takes me to Gitlab instead.

If I shutdown Gitlab and restart apache2, localhost/mediawiki works.

If I start Gitlab back up and restart apache2 again, localhost/mediawiki again takes me to Gitlab.

How do I make some changes so localhost/gitlab and localhost/mediawiki takes me to the respective pages correctly?