File does not exist: /var/www/html/favicon.ico
2013-10-23 15:46
381 查看
今天搭建lamp架构的电子商务网站,突然间发现/var/log/httpd/errorlog报错了[Sat Jul 12 09:14:53 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul12 09:25:19 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul 12 09:25:38 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul 12 09:25:50 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul 12 09:25:53 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul 12 09:25:58 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico[Sat Jul12 09:26:01 2012] [error] [client 192.168.1.152] File does not exist: /var/www/html/favicon.ico去/var/www/html/目录下看了下,确实没有这个文件。那么这个文件到底是干什么用的呢?
查找了一下资料favicon.ico就是指你的网站图标。 当有人(使用IE浏览器)将你的网站收藏为“my favorite”时,就会去参照网站根目录下的“favicon.ico”文件,这个图标也就是“my favorite”里显示的图标。 比如你将“http://www.debian.org/”列为“my favorite”的时候,你的“my favorite”清单就会显示“http://www.debian.org/favicon.ico”这个图标。 当 你的根目录下没有“favicon.ico”这个文件时,“my favorite”里将显示IE浏览器的图标,与此同时“favicon.ico”不存在的信息(404 not found)会写到你的apache2错误日志中去,这样你可以从这个日志中看出,什么时候,什么人(其IP网址)将你的网站设定为“my favorite”。解决方法可以随便找个favicon.ico放到该目录下,或者在线生成一个。 cp /usr/src/httpd-2.2.23/docs/manual/images/favicon.ico /var/www/html/然后就不报错了。
查找了一下资料favicon.ico就是指你的网站图标。 当有人(使用IE浏览器)将你的网站收藏为“my favorite”时,就会去参照网站根目录下的“favicon.ico”文件,这个图标也就是“my favorite”里显示的图标。 比如你将“http://www.debian.org/”列为“my favorite”的时候,你的“my favorite”清单就会显示“http://www.debian.org/favicon.ico”这个图标。 当 你的根目录下没有“favicon.ico”这个文件时,“my favorite”里将显示IE浏览器的图标,与此同时“favicon.ico”不存在的信息(404 not found)会写到你的apache2错误日志中去,这样你可以从这个日志中看出,什么时候,什么人(其IP网址)将你的网站设定为“my favorite”。解决方法可以随便找个favicon.ico放到该目录下,或者在线生成一个。 cp /usr/src/httpd-2.2.23/docs/manual/images/favicon.ico /var/www/html/然后就不报错了。
相关文章推荐
- apache File does not exist: /var/www/html/favicon.ico错误日志
- Apache中 File does not exist: /var/www/html/favicon.ico
- 解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误 2014-05-14 16:04:11
- [OpenSIPS-Users] ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start faile
- linux 下搭建Nginx+php报错open_basedir restriction in effect. File(/var/www/html/index.php) is not within
- 解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误
- yii2框架刚安装上报The file or directory to be published does not exist: /home/wwwroot/advanced/vendor/bower
- 解决opensips启动时出现PID file /var/run/opensips.pid does not exist 的错误
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist 解决方法
- AS2.2打包:release-stripped.ap_' specified for property 'resourceFile' does not exist
- hive在执行任务的时候提示java.io.FileNotFoundException: File does not exist: hdfs://Master:9000/usr/local/apach
- PHPExcel导入文件时发生 File does not exist
- pig ERROR 2997: Encountered IOException. File or directory null does not exist.
- java.io.FileNotFoundException: File does not exist: hdfs ://sxt/home/sqoop-1.4.6/lib/commons-codec-1
- resources-debug-stripped.ap_' specified for property 'resourceFile' does not exist.
- django.template.exceptions.TemplateDoesNotExist: first.html
- 解决Android Studio编译后安装apk报错:The APK file does not exist on disk
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- [iOS]File does not exist
- hadoop dfs put File does not exist