Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom error pages #18

Open
mechanicjay opened this issue Nov 21, 2016 · 2 comments
Open

Custom error pages #18

mechanicjay opened this issue Nov 21, 2016 · 2 comments

Comments

@mechanicjay
Copy link

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 mechanicjay changed the title Custome error pages Custom error pages Nov 21, 2016
@mechanicjay
Copy link
Author

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

mechanicjay pushed a commit to mechanicjay/gitlab-ce-pages that referenced this issue Nov 23, 2016
YuMS added a commit that referenced this issue Nov 24, 2016
Fixes #18 -- adding an error page directive for custom error pages
@YuMS
Copy link
Owner

YuMS commented Dec 1, 2016

See #20 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants