gitlab-ce-pages icon indicating copy to clipboard operation
gitlab-ce-pages copied to clipboard

Custom error pages

Open mechanicjay opened this issue 9 years ago • 2 comments

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: Add the following line to /src/helper/template.conf: error_page 404 = /404.html;

Setup this up and is working well in my environment now.

mechanicjay avatar Nov 21 '16 23:11 mechanicjay

I'll to get a pull request together for this tomorrow.

mechanicjay avatar Nov 23 '16 00:11 mechanicjay

See https://github.com/YuMS/gitlab-ce-pages/pull/20#issuecomment-262700198

#20 give this a try but it is not perfect, so I merged it to a non-master branch for now.

YuMS avatar Dec 01 '16 07:12 YuMS