server {
        listen       80;
        server_name  test.hanwen.com;  
        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
        location / {
                try_files $uri $uri/ /index.php?$query_string;
        }
            index index.php index.html index.htm;
         location ~ .*\.(js|css)$
                {
                root html/dev.hanwen.com/public;
                if (-f $request_filename) {
                expires 1d;
                break;
}
        }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
                root html/dev.hanwen.com/public;
                if (-f $request_filename) {
                expires 1d;
                break;
                }
        }

 }