替换Nginx";没有输入文件指定消息";用空白还是其他


Replace Nginx "No input file specified message" with blank or another?

是否可以用另一条消息或Nginx中的空白消息替换消息"未指定输入文件"?如果我的服务器出现这样的错误,我想让我网站的访问者不显示任何内容。

我的服务器使用Nginx,PHP-FPM,MySQL。

此错误似乎与404 HTTP错误代码一起出现,因此只需覆盖404:

location / {
    error_page    404 = /404.html;
}

在更新配置之前,请确保已设置404.html的样式。