Today, I configured nginx1.0.11 + php5.2.13,but I met mistakes when configure nginx.conf , like this
- location ~ \.php$ {
- root html;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /usr/local/nginx/html/$fastcgi_script_name;
- include fastcgi_params;
- }
at first I wrote like this fastcgi_param SCRIPT_FILENAME html$fastcgi_script_name; but failed.
I searched with google, found this essay
http://wangmk.blog.51cto.com/651644/207692
then I wrote the full path of it, problem resolved.
转载于:https://blog.51cto.com/shanker/787056