nginx+php+远程快速cgi服务器
如何将nginx与其他pc上运行的php fast cgi服务器一起使用,我的nginx服务器在本地主机上运行然后我的第二台pc上有php fast cgi服务器,如何相互连接。我的nginx.conf如下所示: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
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