404页面设置方法

404页面设置方法

在nginx配置中设置404页面,在location块扩展内容中填入如下内容:

error_page 404 /404.html;