Nginx is a high performance web server capable of serving content with flexibility and power. When designing your web pages, it is often helpful to customize every piece of content that your users will see. This includes error pages for when they request content that is not available.
How To Configure Nginx to Use Custom Error Pages on Ubuntu 22.04
How To Configure Nginx to Use Custom Error Pages on Ubuntu 14.04