As expected error pages will display the built in XenForo error page. Like this : test 404 error But accessing an error pages with a known extension like .jpg .png .gif. will just display the nginx error notice. Example: test 404 error with extension How can I fix this? As I notice @Floren @p4guru and @digitalpoint which I think where both using nginx is working fine.