|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!装好nginx-1.0.5与php-5.3.6(php-fpm)刻不容缓的测试info.php(<?phpphpinfo();?>),可是只前往了空缺页,甚么也没有输入,以下是毛病日记。
192.168.6.82--[01/Aug/2011:13:54:20+0800]"GET/info.phpHTTP/1.1"4045"-""Mozilla/5.0(X11;U;Linuxx86_64;zh-CN;rv:1.9.2.9)Gecko/20100827RedHat/3.6.9-2.el6Firefox/3.6.9"
192.168.6.82--[01/Aug/2011:14:57:30+0800]"HEAD/info.phpHTTP/1.1"4040"-""curl/7.19.7(x86_64-redhat-linux-gnu)libcurl/7.19.7NSS/3.12.6.2zlib/1.2.3libidn/1.18libssh2/1.2.2"
192.168.6.82--[01/Aug/2011:13:58:57+0800]"GET/index.htmlHTTP/1.1"200151"-""Mozilla/5.0(X11;U;Linuxx86_64;zh-CN;rv:1.9.2.9)Gecko/20100827RedHat/3.6.9-2.el6Firefox/3.6.9"
在nginx.conf设置文档
location~.php${
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME/scripts$fastcgi_script_name;
includefastcgi_params;
}
变动为
location~.php${
root/data/web;
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME/data/web$fastcgi_script_name;
includefastcgi_params;
}
转载自:http://dngood.blog.51cto.com/446195/628699
欢迎大家来到仓酷云论坛! |
|