Nginx: Set up error pages

Setting up custom error pages are needed whenever the app goes in maintenance or when the code gets crashed … In Nginx, its fairly simple but once when you know it.
Say your app example.com is residing in /var/www/apps/example
Nginx configurations
say your existing configuration looks like…

server{
listen 80;
[…]

Published
Categorized as nginx