Welcome! Log In Create A New Profile

Advanced

nginx+php5-fpm = 404

ast
July 26, 2011 05:24PM
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

Подскажите советом, или хотя бы чем продебажить что здесь не так.

Спасибо
Subject Author Posted

nginx+php5-fpm = 404

ast July 26, 2011 05:24PM

Re: nginx+php5-fpm = 404

ast July 27, 2011 01:52AM

Re: nginx+php5-fpm = 404

lazycommit October 09, 2012 11:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 88
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready