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 # robots.txt is important for search engines
25 location /robots.txt {
29 # This is mostly based on Drupal's stock .htaccess
30 location ~* ^.+(\.(txt|engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)|code-style\.pl|/Entries.*|/Repository|/Root|/Tag|/Template)$ {
34 # serve imagecache files directly or redirect to drupal if they do not exist
35 location ^~ /files/imagecache {
38 try_files $uri @drupal;
41 # serve static files directly
42 location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|swf)$ {
47 # This rewrites pages to be sent to PHP processing
49 rewrite ^/(.*)$ /index.php?q=$1 last;