Skip to content

One NGINX error page to rule them all

blog.adriaan.io
3 pointsharianus1 comment
On HN

Comments

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.

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.

It uses the SSI module which is part of NGINX, so no fancy external module.

I hope it helps you as well!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.