Question: where are nginx error pages?
Answer: Creating Your Custom Error Pages We will put our custom error pages in the /usr/share/nginx/html directory where Ubuntu's Nginx sets its default document root. We'll make a page for 404 errors called custom_404. html and one for general 500-level errors called custom_50x.