2

When using a custom domain for GitLab Pages (i.e. mysite.com), it seems that default domain (myaccount.gitlab.io/mysite) is also active, so content is published in both domains at once.

How can I disable default domain? If there is an option, I can’t find it.

I have looked into GitLab's documentation, forums and Googled it, but not found how to disable this behaviour.

1 Answer 1

2

Indeed you can't because of the nature of how customDomain is implemented. As stated in the doc https://docs.gitlab.com/ee/user/project/pages/custom_domains_ssl_tls_certification/ the internal domain is a prerequisite even you use A handler with IP.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.