Maybe GitLab 15.4 (September 2022) will help:
Getting started with GitLab Pages just got easier
We’ve made it much easier to get started with GitLab Pages. Instead of creating configuration files by hand, build them interactively using the GitLab UI.
Just answer a few basic questions on how your app is built, and we’ll build the.gitlab-ci.ymlfile to get you started.This is the first time we’re using our new Pipeline Wizard, a tool that makes it easy to create
.gitlab-ci.ymlfiles by building them in the GitLab UI.
You can look forward to more simplified onboarding helpers like this one.
See Documentation and Issue.
Plus, GitLab 17.8 (January 2025) adds:
Answer from VonC on Stack OverflowPrimary domain redirect for GitLab Pages
You can now set a primary domain in GitLab Pages to automatically redirect all requests from custom domains to your primary domain. This helps maintain SEO rankings and provides a consistent brand experience by directing visitors to your preferred domain, regardless of which URL they initially use to access your site.
See Documentation and Epic.
How to activate Gitlab Pages Properly? - Stack Overflow
Configuring GitLab Pages Help!
Why is "Pages" not appearing in settings?
[Gitlab]Where can I find Gitlab Pages hosted on my private Gitlab instance? - Stack Overflow
You have to activate the pages feature. In your gitlab.rb:
pages_external_url "IP_OF_YOUR_GITLAB"
gitlab_pages['enable'] = true
There is a tutorial: https://www.youtube.com/watch?v=dD8c7WNcc6s&feature=youtu.be And the complete documentation: https://docs.gitlab.com/ce/administration/pages/index.html
You'll need to ask your sysadmin under which wildcard domain Pages is served: https://docs.gitlab.com/ce/user/project/pages/getting_started_part_one.html#gitlab-pages-domain
Then you'll know where your site was deployed to.
Example: on GitLab.com, all Pages domains are served under *.gitlab.io, therefore, your website will be deployed to username.gitlab.io (user/group site) or to username.gitlab.io/project-name (project website).
You need to find out the wildcard domain of your GitLab instance and replace gitlab.io with it.
See also: Pages' limitations: https://docs.gitlab.com/ce/user/project/pages/introduction.html#limitations
