Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nginx+php5-fpm = 404
- To: nginx-ru@xxxxxxxxx
- Subject: nginx+php5-fpm = 404
- From: "ast" <nginx-forum@xxxxxxxx>
- Date: Tue, 26 Jul 2011 17:24:47 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=xSJ8X4XcEMOZbVA4sIeWGGLSy2dAw4teVWze0ArYbU4=; b=UuDQCT01THm4wWLVWfrOXfxbgKFKWWbtVu0aDUcJW3AYZpE0v1he+BepYEDlk4lJjH3uiO1qXOlp3DoBDDm5Cyx+AqXrUhWrkeacln3dfnkcJSZXhOE6cZm0UNdW5EU5;
Hello.
Понадобилось мне добавить поддержку php
в nginx. Поставил php5-fpm и сопутсвующие
пакеты. Конфиг nginx:
server {
listen 80;
server_name gr.com;
charset utf-8;
location / {
root /var/www/test;
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/var/www/test$fastcgi_script_name;
include fastcgi_params;
include /etc/nginx/fastcgi_params;
}
}
netstat -nat | grep 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:*
LISTEN
В ответ получаю следующее(заодно
версии):
curl -i gr.com
HTTP/1.1 404 Not Found
Server: nginx/0.8.54
Date: Tue, 26 Jul 2011 20:48:50 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.6-6~dotdeb.1
Подскажите советом, или хотя бы чем
продебажить что здесь не так.
Спасибо
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,212964,212964#msg-212964
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|