server
{
listen 80;
server_name test . local ;
index index.php index.shtml index.htm index.html;
root /data/app/test . local /wwwroot ;
access_log off;
location /upload {
upload_pass /index .php?c=uploader&a=upload_server;
upload_cleanup 400 404 499 500-505;
upload_store /data/app/test . local /upload_tmp ;
upload_store_access user:r;
upload_limit_rate 128k;
upload_set_form_field "${upload_field_name}_name" $upload_file_name;
upload_set_form_field "${upload_field_name}_content_type" $upload_content_type;
upload_set_form_field "${upload_field_name}_path" $upload_tmp_path;
upload_aggregate_form_field "${upload_field_name}_md5" $upload_file_md5;
upload_aggregate_form_field "${upload_field_name}_size" $upload_file_size;
upload_pass_form_field "^.*$" ;
}
location ~ .*\.php?$
{
include fastcgi_params;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 30d;
}
location ~ .*\.(js|css)?$ {
expires 1d;
}
}
|