Why am I getting error for apple-touch-icon-precomposed.png

后端 未结 11 1824
梦谈多话
梦谈多话 2020-11-29 16:06

I have created a new rails3 project but I am seeing following logs many times in my server logs. Why I am getting these request and how can I avoid these?

11条回答
  •  生来不讨喜
    2020-11-29 16:34

    If you ended here googling, this is a simple configuration to prevent this error full the web server logs:

    Apache virtualhost

    Redirect 404 /apple-touch-icon-precomposed.png
    
        ErrorDocument 404 "apple-touch-icon-precomposed does not exist"
    
    

    Nginx server block:

    location =/apple-touch-icon-precomposed.png {
            log_not_found off;
            access_log off;
    }
    

    PS: Is possible you want to add apple-touch-icon.png and favicon.ico too.

提交回复
热议问题