I’ve been trying to get GitLab pages working but to no avail; it’s not working like the documentation says it should. Below is my current configuration.
- My main GitLab domain (http://git.domain.tld) redirects to https://git.domain.tld through the
pages_external_urlis set to
I’m using most the most basic configuration for pages. However, when I deploy a basic HTML site, the URL generated redirects to my main GitLab domain rather than staying on domain defined for pages.
http://<namespace>.pages.domain.tld/hello-world redirects to
I have tried binding the subdomain to its own IP which just returns
502 Bad Gateway if I use it in conjunction with
gitlab_pages['external_http']. I’m at a loss, there’s nothing visible in the logs that tell me what’s wrong, but I feel like it’s something dead simple.
I have even tried the same configuration with TLS disabled and the redirect still occurs.