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 is residing in /var/www/apps/example
Nginx configurations
say your existing configuration looks like…

listen 80;

Categorized as nginx