Skip to content

Commit 0747a11

Browse files
authored
disable access log for favicon.ico and robots.txt
1 parent 837b04a commit 0747a11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/nginx/conf.d/default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ server {
1717
location / {
1818
try_files $uri /index.php?$args;
1919
}
20+
21+
location = /favicon.ico { access_log off; log_not_found off; }
22+
location = /robots.txt { access_log off; log_not_found off; }
2023

2124
location ~ [^/]\.php(/|$) {
2225
fastcgi_split_path_info ^(.+\.php)(/.+)$;

0 commit comments

Comments
 (0)