Apache - 文件不存在错误(文件肯定存在) - favicon.ico

标签 apache lamp

我在 Linux 中将 apache 设置为 LAMP 服务器

在根/www/目录中,我有一个 favicon.ico,但它从未在浏览器(Chromium、Firefox)中显示,并且在 apache error.log 中出现以下错误:

[Mon Jul 08 17:32:30 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico

我并不是特别担心该文件没有出现,但它确实存在,而且我无法弄清楚为什么它会给我这个错误。

最佳答案

(在问题编辑中回答。转换为社区 wiki 答案。请参阅 Question with no answers, but issue solved in the comments (or extended in chat) )

OP 写道:

The favicon was 32x32 which seems to be why. I substituted with a 16x16 favicon.ico file and I no longer get this error.

What I further don't understand is why I would get this at all - presumably some setting as I have an apache server on a hosted website with the same 32x32 favicon but it appears there and there are no errors.

关于Apache - 文件不存在错误(文件肯定存在) - favicon.ico,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17557519/

相关文章:

java - 查找或初始化解决 "hostname in certificate didn' t 匹配所需的 keystore ”

svn - 用于部署到我们服务器的 PHP 代码组织

apache - 重定向到Apache虚拟主机文件中的子文件夹

php - 跨(子域?)维护 Assets 的最佳实践

java - HttpClient 4.1.x 的文档在哪里?

php - 以非 Root 用户身份连接 MySQL 时身份验证失败

php - 如何使内部客户数据与公共(public)客户门户保持同步?

LAMP中的php和mysql连接

java - 通过 J_security_check

java - 如何使用 Apache Tika 比较两个 pdf 文档