Solution: gitlab pages are slow to appear/update. How “slow” is slow depends on the current state of the infrastructure. It’s about 15 minutes to half an hour at the moment of writing. I don’t have enough privileges to mark another comment as a solution, but I wanted to make it clear since this is… Answer from enrico.guiraud on forum.gitlab.com
🌐
GitLab
forum.gitlab.com › how to use gitlab
Gitlab Pages: 404 for even the simplest setup - How to Use GitLab - GitLab Forum
January 19, 2017 - Just like in 404 error on Gitlab Pages I have a super simple setup where gitlab pages is 404-ing on the main page. Test repo is here: https://gitlab.com/windtrain/pagestest. Dead simple with just an index.html and a ci script to copy the directory to /pages. Page should be here: http://windtrain.gitlab.io/pagestest, but 404s.
Discussions

GitLab Pages returns 404 error
Hello all, First off, I could not find a category that looked like it was mostly focused on getting help with GitLab Pages, so picked this category. If I should post this in a different category, please let me know and I will do that. I am attempting to set up my first ever set of GitLab pages. More on forum.gitlab.com
🌐 forum.gitlab.com
5
0
September 5, 2020
GitLab don't serve 404.html error page from root repo - Stack Overflow
If I create repo with reponame and same content, it serves 404.html page well on /reponame/not_existing_file from that repo. ... Internal GitLab error page says, that: ..you don't have the necessary permissions.., but the repo reponame has the same permissions (and settings at all) as username.gitlab.io. ... The "Creating a custom ... More on stackoverflow.com
🌐 stackoverflow.com
Gitlab pages still 404
gitlab.io is a free static hosting service for repos in gitlab.com: files that can be hosted statically are HTML files and MD (markdown syntax) files. most of the time, repos are not equivalent to a static web site. you need a transformation task (static site generation) script instructions in a file .gitlab-ci.yml without explicit transformation script, the site automatically output the index.html or index.md or readme.md as the default page of the site. Without these, the static site has no default page (=404 page not found error) [ https://about.gitlab.com/2016/04/07/gitlab-pages-setup/]https://about.gitlab.com/2016/04/07/gitlab-pages-setup/ More on reddit.com
🌐 r/gitlab
3
1
November 29, 2018
What triggers a custom 403.html?
The GitLab Pages documentation mentions that you can create custom 403.html files, in the same way you can 404.html files: When I create a custom 404 it works as specified, but I can’t seem to trigger the custom 403 page on gitlab.com. I’ve tried: Accessing a private GitLab Pages site with ... More on forum.gitlab.com
🌐 forum.gitlab.com
0
0
January 10, 2024
🌐
Alexandercalvert
alexandercalvert.me › blog › adding-a-custom-404-page-to-a-gitlab-pages-deployment
Adding a custom 404 page to a Gitlab Pages deployment
To add a custom 404 page to a Gitlab Pages deployment, create an HTML page called 404.html and add it to the public directory of your site.
🌐
University of Toronto
microfluidics.utoronto.ca › help › help
Introduction · Pages · Project · User · Help · GitLab
GitLab Pages offers configuration options to customize your static site's deployment and presentation. With Pages settings, you can: Serve custom error pages for 403 and 404 responses.
🌐
GitLab
gitlab.com › gitlab.org › gitlab-pages › merge requests › !263
Serve custom 404.html file for namespace domains (!263) · Merge requests · GitLab.org / gitlab-pages · GitLab
June 5, 2020 - This will allow namespace domains to serve custom 404.html files for public projects. It will allow serving the same custom error page for private projects when there is...
🌐
GitLab
forum.gitlab.com › how to use gitlab
GitLab Pages returns 404 error - How to Use GitLab - GitLab Forum
September 5, 2020 - Hello all, First off, I could not find a category that looked like it was mostly focused on getting help with GitLab Pages, so picked this category. If I should post this in a different category, please let me know and I will do that. I am attempting to set up my first ever set of GitLab pages.
Find elsewhere
🌐
PRACE
repository.prace-ri.eu › help
Introduction · Pages · Project · User · Help · GitLab
Visit the GitLab Pages group for a complete list of example projects. Contributions are very welcome. You can provide your own 403 and 404 error pages by creating 403.html and 404.html files in the root of the public/ directory.
🌐
Reddit
reddit.com › r/gitlab › gitlab pages routing me to 404.
r/gitlab on Reddit: Gitlab pages routing me to 404.
May 27, 2025 - I'd prefer for it to be the normal way, <namespace>.gitlab.io/<appName>. I found where I could change that setting, so I I checked it and made sure my page was set to public and accessible by everyone. But the repo itself is still private. I deleted the page and reran the pipeline and now when I try to access my page, it still just redirects me like it did before but now it just gives a 404 ...
🌐
GitLab
forum.gitlab.com › how to use gitlab
What triggers a custom 403.html? - How to Use GitLab - GitLab Forum
January 10, 2024 - The GitLab Pages documentation mentions that you can create custom 403.html files, in the same way you can 404.html files: When I create a custom 404 it works as specified, but I can’t seem to trigger the custom 403 p…
🌐
GitHub
github.com › YuMS › gitlab-ce-pages › issues › 18
Custom error pages · Issue #18 · YuMS/gitlab-ce-pages
November 21, 2016 - Official Gitlab Pages explains that for a custom 404 page on your site, simply add a 404.html into the root of your site: https://docs.gitlab.com/ee/pages/README.html#custom-error-codes-pages As it turns out, this is trivial to implement...
Author: YuMS
🌐
GitLab
forum.gitlab.com › how to use gitlab
Why do I get 503 on custom 404 page (user Gitlab page)? - How to Use GitLab - GitLab Forum
June 17, 2021 - Hello :wave: Recently I wanted to add a custom 404 page for my user page (https://soykje.gitlab.io), but for an unknown reason I get 503 and redirected to authentification page (login/signup). What could be the reason …
🌐
HUGO
discourse.gohugo.io › support
Gitlab pages 404 - help? - support - HUGO
July 20, 2018 - I’ve followed the tutorial: I’ve tried the submodule pre-script from here: I’ve tried un-git-ing the theme so that it doesn’t need to deal with submodules, as suggested elsewhere on here… …but I’m still getting build failures and a 404. (same error with or without submodule pre-script.)
🌐
GitLab
gitlab.lcqb.upmc.fr › help › user › project › pages › introduction.md
Introduction · Pages · Project · User · Help · GitLab
For a complete guide on Pages domains, read through the article GitLab Pages from A to Z: Part 3 - Setting Up Custom Domains - DNS Records and SSL/TLS Certificates · You can provide your own 403 and 404 error pages by creating the 403.html and 404.html files respectively in the root directory of the public/ directory that will be included in the artifacts.
🌐
GitLab
runbooks.gitlab.com › pages › gitlab-pages
GitLab Pages returning 404 | Runbooks
00:00:00 /opt/gitlab/embedded/bin/gitlab-pages -listen-http 0.0.0.0:1080 -listen-https 0.0.0.0:1443 -root-cert /etc/gitlab/ssl/pages.crt -root-key /etc/gitlab/ssl/pages.key -daemon-uid 1100 -daemon-gid 1100 -pages-domain gitlab.io -pages-root /var/opt/gitlab/gitlab-rails/shared/pages -redirect-http false -use-http2 true ... Now attempt to run curl by proxying through this SOCKS host with a custom Host header and SSL verification disabled: ... If everything is normal, you should see “200 OK” instead of “404 Not Found”.