|
/usr/local/php/binphp-cgi /var/www/test.php我手动是可以解析的。
可是我用脚本启动 php-cgi开启8888监听端口以后就无法解析
注:启动脚本没问题。
Ngins主配置文件PHP模块也没问题配置如下
location ~ .php$ {
fastcgi_pass 127.0.0.1:8888;
# By all means use a different server for the fcgi processes if you need to
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
# !! <--- Another path reference for you.
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
请各位兄弟提点 |
|