server

{
        listen       80;
     server_name abc.com;
     index index.html index.htm index.php;
     root  /data/www/abc/web_root;
     location ~ ^(.+\.php)(.*)$
{
        if ($request_filename ~* (.*)\.php) {
                set $php_url $1;
        }
        if (!-e $php_url.php) {
                return 403;
        }
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
    location / {
        root  /data/www/abc/web_root;
        index index.php index.html;
        if (!-e $request_filename) {
            rewrite ^/(.*)$ /index.php/$1 last;
break;
   }
        fastcgi_index index.php;
     }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
     {
     expires      30d;
     location ~ .*\.(js|css)?$
     {
        expires      12h;
     }
     access_log off;
  }
}