TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

One NGINX error page to rule them all

3 点作者 harianus超过 6 年前

1 comment

harianus超过 6 年前
After years of NGINX love and hate I finally managed to have my error pages properly styled. Not one HTML page per error, but one template for all.<p>I always ended up using HTML files for the most common errors, but this is time consuming and annoying to do. Now I have just one error HTML page where I can have custom error messages and descriptions.<p>It uses the SSI module which is part of NGINX, so no fancy external module.<p>I hope it helps you as well!