Custom Error Page


#1

Hi Guys,

How can I create custom error pages on nginx (easyengine) ?

Eg: 404 error will redirect to /404.php

If possible, where to edit the file? Please help~


#2

You can add error_page directive in nginx configuration file.

Ex:

error_page 404 /path/of/custom/error/file;

I wrote about this sometime back - https://geekflare.com/custom-error-page-in-apache-nginx-using-errordocument-errorpage/


#3