要养成定期查看日志的习惯!
查看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
<code>emerg</code>
Emergencies – system is unusable.
“Child cannot open lock file. Exiting”
<code>alert</code>
Action must be taken immediately.
“getpwuid: couldn’t determine user name from uid”
<code>crit</code>
Critical Conditions.
“socket: Failed to get a socket, exiting child”
<code>error</code>
Error conditions.
“Premature end of script headers”
<code>warn</code>
Warning conditions.
“child process 1234 did not exit, sending another SIGHUP”
<code>notice</code>
Normal but significant condition.
“httpd: caught SIGBUS, attempting to dump core in …”
<code>info</code>
Informational.
“Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)…”
<code>debug</code>
Debug-level messages
“Opening config file …”
解决办法:
修改:httpd.conf,将LogLevel warn 成为 LogLevel crit
本文转自许琴 51CTO博客,原文链接:http://blog.51cto.com/xuqin/1140458,如需转载请自行联系原作者