2013-07-09 33 views
3

我的Apache設置爲在Linux中阿帕奇 - 文件不存在錯誤(文件肯定是存在的) - 爲favicon.ico

在根/ WWW /目錄中的LAMP服務器,我有一個favicon.ico的,但它永遠不會顯示在瀏覽器(鉻,火狐),並在Apache error.log中我得到以下錯誤:

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

我並不特別是與文件沒有出現困擾,但它是存在的,我的天堂」我能夠弄清楚爲什麼它給了我這個錯誤。

+0

是您網站的文檔根目錄裏面的「根/ www目錄」(或至少是別名)? access_log中失敗請求的URL是什麼? –

+0

我討厭這麼說,但是......最有可能它不在那裏(或者說,那裏有一個文件,它有一個稍微不同的名字......尋找空白字符等)。 – Wrikken

+0

感謝Marc&Wrikken的評論,我在修改favicon.ico文件的分辨率後發現了這個問題。 – cloying

回答

1

(回答問題編輯轉換爲一個社區維基答案見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.