read the log of php-fpm.
in the php-fpm.conf:
<value name="allowed_clients">127.0.0.1,192.168.168.105</value>,
192.168.168.105 must be the IP address of you nginx host.
On Fri, May 8, 2009 at 12:25 AM, Juan Fco. Giordana <juangiordana@gmail.com> wrote:
Put your location block inside your server block.
server {
[...]
location ~ \.php$ {
[...]
}
}
bastardz wrote:
> I have two servers with php-fpm nginx. Everything works like a charm on each server.
> When I want to set up second servers as remote fastcgi_pass I got No input file specified
> Here is my config:
>
> server {
> listen 192.168.168.105:80;
> server_name localhost;
> index index.php;
> root /home/ba;
> error_log /var/log/nginx/remote.error.log debug;
> location / {
> error_page 404 = /error.html
> }
>
> location ~ \.php$ {
> error_log /var/log/nginx/castorama.error.log debug;
> fastcgi_pass 192.168.168.3:9000;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
> }
> }
>
> Any idea why?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?3,1848,1848#msg-1848
>
--
==================================
Cao Yuwei
bsdmap.com
MSN: caoyuwei@hotmail.com
MAIL:caoyuwei@gmail.com