Сап, Тостер.
Не могу не как заставить php-fpm обрабатывать php.
Пишет:
File not found.
Конфиг для .php:
location ~ \.php$ {
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/tmp/wwwpool.sock;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /home/windler/www$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED /home/windler/www$fastcgi_script_name;
}
error.log:
2014/02/03 16:40:09 [error] 7411#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.220.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/wwwpool.sock:", host: "192.168.220.132"
Простые документы - получает нормально.