nginx - 禁用 nginx 的 index.html
问题描述
我看到这样的错误:
"/etc/nginx/html/index.html" is not found (2: No such file or directory
但是我的网站没有 index.html,因为...2018。
有没有办法禁用 nginx 的错误而不关心该文件?
解决方案
推荐阅读
- swift - SwiftUI 保存新对象并导航到它
- bash - 在 Linux/Darwin 中显示来自 STDIN 的 MAN 格式文件或变量/不使用 RST/POD
- plot - 我可以在 Charticulator 中制作 3D 绘图吗?如果有怎么办?
- xml - 在 Cardbox 中将 XML 转换为 XML
- spring - Play Framework中的公共资源(几乎是有状态的)对象(bean)(与HTTP会话无关)?
- python - 查找具有相同未知值的所有键
- vue.js - Bootstrap 导航栏在我的 Vue js 应用程序中没有正确显示
- react-native - 如何使用 react-navigation v5 在 react-native 中创建自定义导航抽屉?
- javascript - 如何将字体大小设置为“更大”或系统默认值的 140%
- c - 如何在 TCP 服务器程序中实现用户名、密码和文件路径