Using same custom domain for more than one project


#1

I have two projects: https://gitlab.com/me/foo/ and https://gitlab.com/me/bar/. Both projects have a .gitlab-ci.yml with instructions to build a web site to be deployed by GitLab Pages. I own https://me.com and I would like that GitLab Pages return the website created by https://gitlab.com/me/foo/ to visitors of https://me.com/foo and the website created by https://gitlab.com/me/bar/ to visitors of https://me.com/bar. How can I do it?

Following the instructions here I managed for GitLab Pages return the website created by https://gitlab.com/me/foo/ to visitors of https://me.com/foo/ but when I try to use the same instructions for the other project I got “Domain has already been taken” error.


#2

Me too.

Pardon for bumping an old thread, but it seems relevant.

I’m gradually migrating over from github where I had a custom domain www.brandt.id.au for veromary.github.io then all my projects inherited that custom domain, so I had www.brandt.id.au/littleOffice for veromary.github.io/littleOffice and so on.

Now, I have veromary.gitlab.io/littleOffice working, and www.brandt.id.au for veromary.gitlab.io BUT www.brandt.id.au/littleOffice gives a 404 file not found error.

Is this something that I need to change settings for, or is it just impossible with gitlab?


#3

I have exactly same issue while migrating projects from GitHub pages to GitLab pages.

I used to set an domain for my GitHub pages and all other projects will use the same domain with different base url. But things are not working like this in GitLab. or is there any configuration I missed?