|
发表于 2013-1-18 15:22:12
|
显示全部楼层
server
02
03
{
04
05
listen 80;
06
server_name www.xxx.com;
07
index index.php;
08
root /www/cyrec;
09
10
location ~ .*.php($|/)
11
{
12
root /www/cyrec;
13
fastcgi_param SCRIPT_FILENAME /www/cyrec$fastcgi_script_name;
14
fastcgi_split_path_info ^(.+\.php)(.*)$;
15
fastcgi_param PATH_INFO $fastcgi_path_info;
16
include fastcgi_params;
17
fastcgi_pass unix:/tmp/php-fcgi.sock;
18
fastcgi_index index.php;
19
}
20
}
21
重启nginx /usr/local/etc/rc.d/nginx reload,解决问题
|
|