perusio/drupal-with-nginx — Issue #33: images still showing in access log
Author: paradoxni
Created: 2012-03-08 12:58:22+00:00
State: open

I have the following location with access_log off in drupal_boost5.conf, however jpg / png images are still showing in the logs:

## All static files will be served directly.
location ~* ^.+\.(?:css|js|jpe?g|gif|htc|jpg|ico|png|html)$ {
access_log off;
expires 30d;
## No need to bleed constant updates. Send the all shebang in one
## fell swoop.
tcp_nodelay off;
## Set the OS file cache.
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
}

LOG:

x.x.x.x - - [08/Mar/2012:11:46:38 +0000] "GET /sites/default/files/imagecache/ts_homepage_secondary_story/image.png HTTP/1.1" 200 21017 "http:///" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"

x.x.x.x - - [08/Mar/2012:12:52:26 +0000] "GET /sites/default/files/imagecache/ts_homepage_secondary_story/image.jpg HTTP/1.1" 200 3989 "http:///" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"