Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nginx+php+远程快速cgi服务器_Php_Nginx - Fatal编程技术网

nginx+php+远程快速cgi服务器

nginx+php+远程快速cgi服务器,php,nginx,Php,Nginx,如何将nginx与其他pc上运行的php fast cgi服务器一起使用,我的nginx服务器在本地主机上运行然后我的第二台pc上有php fast cgi服务器,如何相互连接。我的nginx.conf如下所示: location ~ [^/]\.php(/|$) { set_real_ip_from 192.168.10.2; fastcgi_split_path_info ^(.+?\.php)(/.*)$; if (!-f $document_root$fast

如何将nginx与其他pc上运行的php fast cgi服务器一起使用,我的nginx服务器在本地主机上运行然后我的第二台pc上有php fast cgi服务器,如何相互连接。我的nginx.conf如下所示:

location ~ [^/]\.php(/|$) {
    set_real_ip_from   192.168.10.2;
    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
    if (!-f $document_root$fastcgi_script_name) {
        return 404;
    }

    fastcgi_pass 192.168.10.2:9000;
    fastcgi_index index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param REMOTE_ADDR $http_x_real_ip;
    include fastcgi_params;
    autoindex on;
    root   html;
    index  index.php index.html index.htm;
}

请提供有关本地和远程pc的更多信息,如ip或侦听端口等。nginx侦听端口80 localhost/192.168.10.3:80/0.0.0:80,PHP-FPM侦听端口192.168.10.2:9000