In our /admin/config/system/site-information we have it set to allow Drupal to display a designed/themed 403/404 page:
Default 403 (access denied) page /customerror/403 This page is displayed when the requested document is denied to the current user. Leave blank to display a generic “access denied” page.
Default 404 (not found) page customerror/403
However, the Nginx default is still displaying: 404 Not Found nginx/1.4.6 (Ubuntu)
Our custom Nginx config file has this:
error_page 404 /404.html;
Should the latter also be commented out?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.