Removed 404 and 500 errors from nginx.conf and added to settings.