From 1de944e806048950eaef9d1fc59bec00eeb937c1 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sun, 14 Dec 2014 22:19:03 +0000 Subject: [PATCH] Do not log favicon/robots GET calls --- server/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/nginx.conf b/server/nginx.conf index 7641430..525e802 100644 --- a/server/nginx.conf +++ b/server/nginx.conf @@ -66,6 +66,12 @@ server { keepalive_timeout 5; client_max_body_size 2M; + location ~ /(favicon.ico|robots.txt) { + access_log off; + log_not_found off; + expires 3d; + } + location /media/ { alias /srv/dpaste.de/var/media/; }