#主要配置这个,包含 在server里面
location ~ .*\.(php)?$  
{
				fastcgi_pass  127.0.0.1:9000;
				fastcgi_index index.php;
				include fcgi.conf;
}

location ~ \.php$ {
		root /usr/local/nginx/html/zabbix;
		fastcgi_pass   127.0.0.1:9000;
		fastcgi_index  index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		include        fastcgi_params;
}
其他配置
location / {
				index  index.php index.html index.htm;
				if (!-e $request_filename) {
								 rewrite  ^(.*)$  /index.php?s=/$1  last;
								break;
				 }

if (-d $request_filename){
				rewrite ^/(.*)([^/])$ http://$host/$1$2/ permanent;
}