Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Drupal configured to handle 404/403, NGINX still displays them
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
Our custom Nginx config file has this:
error_page 403 /customerror/403;
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.×