diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 41771cc2e..e13774c08 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -50,8 +50,11 @@ server { # return 403; #} - # let NGINX serve images + # custom CSS + location ~ /stylesheet-cache/ { try_files $uri =404; } + # images location ~* \.(gif|png|jpg|jpeg|bmp|tif|tiff)$ { try_files $uri =404; } + # thumbnails & optimized images location ~ /_optimized/ { try_files $uri =404; } # attachments must go through the rails application to get the right content-disposition header