здравствуйте, недавно произошел мой первый опыт по настройке nginx =)
Сразу-же возникли проблемы,искал в гугле, в основном приводятся конфиги php-fpm, а я их у себя на сервере найти не могу =) Хотя вроде ставил. Собственно суть в следующем. Сервер на Дебиан, поставил php+nginx, настроил, и вроде бы все хорошо... http://178.77.76.176/phpinfo.php
Но залил сайт в директорию, а при попытке обратиться к http://178.77.76.176/insidernewsru/www/ собственно и выскакивает эта ошибка...
В логах...
[code]
2010/09/20 02:50:33 [error] 24347#0: *1 directory index of "/home/" is forbidden, client: 88.85.188.50, server: localhost, request: "GET / HTTP/1.1", host: "178.77.76.176"
2010/09/20 02:51:26 [error] 16033#0: *1 directory index of "/home/" is forbidden, client: 88.85.188.50, server: 178.77.76.176, request: "GET / HTTP/1.1", host: "178.77.76.176"
2010/09/20 02:51:53 [error] 16033#0: *1 directory index of "/home/" is forbidden, client: 88.85.188.50, server: 178.77.76.176, request: "GET / HTTP/1.1", host: "178.77.76.176"
2010/09/20 02:59:45 [error] 16033#0: *11 directory index of "/home/" is forbidden, client: 88.85.188.50, server: 178.77.76.176, request: "GET / HTTP/1.1", host: "178.77.76.176"
2010/09/20 03:00:57 [error] 16033#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 88.85.188.50, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "178.77.76.176"
2010/09/20 03:02:22 [error] 16033#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 88.85.188.50, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "178.77.76.176"
2010/09/20 03:03:46 [error] 16033#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 88.85.188.50, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "178.77.76.176"
2010/09/20 03:04:58 [error] 16033#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 88.85.188.50, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "178.77.76.176"
2010/09/20 03:18:54 [error] 16033#0: *23 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 88.85.188.50, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "178.77.76.176"
2010/09/20 18:06:04 [error] 16033#0: *32 "/home/insidernewsru/index.php" is not found (2: No such file or directory), client: 88.85.181.174, server: 178.77.76.176, request: "GET /insidernewsru/ HTTP/1.1", host: "178.77.76.176"
[/code]
Права 755 на папки...
В nginx.conf
[code]
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
[/code]
В /etc/nginx/sites-enabled/*
[code]
server {
listen 80;
server_name 127.0.0.1;
access_log /var/log/nginx/localhost.access.log;
location / {
root /home;
index index.php index.html index.htm;
}
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
location /images {
root /usr/share;
autoindex on;
}
location ~ \.php$ {
# if (-e $request_filename ) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home$fastcgi_script_name;
include fastcgi_params;
# }
}
[/code]
Подскажите, куда копать?
Edited 1 time(s). Last edit at 09/20/2010 12:35PM by Minor.