Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
php + fastcgi
Запускаю:
/usr/local/bin/spawn-fcgi -a 127.0.0.1 -s /tmp/fphp.sock -u www-data -f php-cgi
в конфиге:
server {
listen 192.0.0.1:81;
location / {
proxy_pass http://unix:/tmp/fphp.sock:/;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/var/www/site.com/www$fastcgi_script_name;
}
}
но получаю: 502 Bad Gateway
а в логе:
2007/04/10 01:07:34 [error] 15460#0: *1118317 recv() failed (104:
Connection reset by peer) while reading response header from upstream,
client: 192.0.0.2, server: site.com, URL: "/index.php", upstream:
"http://unix:/tmp/fphp.sock:/index.php", host: " 192.0.0.1:81"
Подскажите как исправить.
Спасибо.
|