server-side

Mute favicon.ico error log

C/H 2018. 7. 23. 08:30


favicon.ico error log

127.0.0.1 - - [19/Jul/2018:22:20:28 +0900] "GET /favicon.ico HTTP/1.1" 499 0 "http://crawler4php.com/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

Mute /favicon.ico error log

#Nginx 
location = /favicon.ico {
    log_not_found off;
}

#Apache
Redirect 404 /favicon.ico
<Location /favicon.ico>
   ErrorDocument 404 "No favicon"
</Location>

# .htaccess
<IfModule mod_alias.c>
    RedirectMatch 403 favicon.ico
</IfModule>

Using Html codes


# Chreom, Safari <link rel="icon" href="data:;base64,="> #html5 <link rel="icon" href="data:;base64,iVBORw0KGgo=">


반응형

'server-side' 카테고리의 다른 글

PowerSehll Latest  (0) 2024.02.04
Kafka - 튜토리얼  (0) 2021.11.28
Gearman - Job Queue FrameWork  (0) 2018.06.18
폐쇠망에서 SSL인증서 적용시 검증  (0) 2016.01.11
서버 모니터링 서비스 WhaTap 설치와 삭제  (0) 2015.10.08