3 # search for already compressed files
7 # some images have no mime type
8 default_type image/jpeg;
10 # Buffers definition. allows of up to 260k to be passed in memory.
11 client_body_buffer_size 1m;
16 # 404 generated from php can be rather slow. Uncomment with care
17 #error_page 404 /index.php;
19 # disallow access to version control directory, but return 404, not to disclose information
24 # This is mostly based on Drupal's stock .htaccess
25 location ~* ^.+(\.(txt|engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$ {
29 # serve imagecache files directly or redirect to drupal if they do not exist
30 location ^~ /files/imagecache {
33 try_files $uri @drupal;
36 # serve static files directly
37 location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|swf)$ {
42 # This rewrites pages to be sent to PHP processing
44 rewrite ^/(.*)$ /index.php?q=$1 last;