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 custom 403 when I’m logged out.
- Accessing a private GitLab Pages site custom 403 when I’m logged in as another user and I don’t have permission to view it.
Neither triggers the custom 403, which is a shame because I’d like to be able to inform users why they don’t have access to my GitLab Pages site. And it doesn’t seem to be documented anywhere.
What is the custom 403.html
file for and how do you trigger it? Is this a feature just for EE users?