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.
Configuring GitLab Pages Help!
How to activate Gitlab Pages Properly? - Stack Overflow
GItlab Pages configuration
How to configure gitlab page - General - GitLab Forum
Ok, before ask, look at config files, my mistake.
There is no word about enabling Gitlab Pages in /etc/gitlab/gitlab.rb (in case of omnibus installs).
Current link to pages documentation: GitLab Pages
If you run into bind mount issue when using docker volume you'll also need to set this:
gitlab_pages['inplace_chroot'] = true
