apache 错误日志 File does not exist: 解决办法

简介:

要养成定期查看日志的习惯!

查看apache日志发现:

错误日志 File does not exist:

File does not exist: /opt/htdocs/resource/favicon.ico

File does not exist: /opt/htdocs/resource/404.html

File does not exist: /opt/htdocs/resource/robots.txt

Level Description Example
emerg Emergencies – system is unusable. “Child cannot open lock file. Exiting”
alert Action must be taken immediately. “getpwuid: couldn’t determine user name from uid”
crit Critical Conditions. “socket: Failed to get a socket, exiting child”
error Error conditions. “Premature end of script headers”
warn Warning conditions. “child process 1234 did not exit, sending another SIGHUP”
notice Normal but significant condition. “httpd: caught SIGBUS, attempting to dump core in …”
info Informational. “Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)…”
debug Debug-level messages “Opening config file …”

解决办法:
修改:httpd.conf,将LogLevel warn 成为 LogLevel crit

 



      本文转自许琴 51CTO博客,原文链接:http://blog.51cto.com/xuqin/1140458,如需转载请自行联系原作者




相关实践学习
日志服务之使用Nginx模式采集日志
本文介绍如何通过日志服务控制台创建Nginx模式的Logtail配置快速采集Nginx日志并进行多维度分析。
相关文章
|
5月前
如何关掉Parsed mapper file日志打印
如何关掉Parsed mapper file日志打印
82 1
|
3月前
|
前端开发 应用服务中间件 网络安全
在Apache上http强制跳转到https无效的解决办法
在Apache上http强制跳转到https无效的解决办法
|
4月前
|
运维 应用服务中间件 网络安全
利于群晖的File Station+SFTP实现第三方人员快速获取服务器应用日志
利于群晖的File Station+SFTP实现第三方人员快速获取服务器应用日志
92 0
|
6月前
|
Apache Windows
Apache No installed service named “Apache2.4“的解决办法
Apache No installed service named “Apache2.4“的解决办法
100 0
|
7月前
|
关系型数据库 MySQL 数据库
阿里云Mysql数据库物理全备文件恢复到自建数据库Mysql报错:InnoDB: Log file ./...xtrabacku
阿里云Mysql数据库物理全备文件恢复到自建数据库Mysql报错:InnoDB: Log file ./...xtrabacku
|
8月前
|
应用服务中间件 PHP nginx
PHP ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
PHP ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
55 1
|
9月前
|
Java
成功解决:ERROR StatusLogger No log4j2 configuration file found.
成功解决:ERROR StatusLogger No log4j2 configuration file found.
|
11月前
|
应用服务中间件
报错java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.问题出现原因,及解决办法
报错java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.问题出现原因,及解决办法
106 0
|
12月前
|
Oracle 前端开发 关系型数据库
log file sync 和 log file parallel write等待事件的区别和联系
log file parallel write 和log file sync这两个等待事件关系密切,很多人对这两个等待事件有一些误解,我们先来看看Oracle官方文档的解释:
|
12月前
|
应用服务中间件
报错java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.问题出现原因,及解决办法
报错java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.问题出现原因,及解决办法
117 0

推荐镜像

更多