Welcome! Log In Create A New Profile

Advanced

The page you are looking for is temporarily unavailable.

Posted by Minor 
The page you are looking for is temporarily unavailable.
September 20, 2010 12:35PM
здравствуйте, недавно произошел мой первый опыт по настройке 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.
Re: The page you are looking for is temporarily unavailable.
September 21, 2010 12:29PM
Эту проблему я решил, появилась другая. " No input file specified. ", типа 404...
Но я точно уверен что файлы в каталогах есть!
В логах...
[code]
2010/09/21 17:23:49 [error] 22051#0: *2 open() "/home/insidernews.ru/www/1.html" failed (2: No such file or directory), client: 109.108.38.52, server: insidernews.ru, request: "GET /1.html HTTP/1.1", host: "insidernews.ru"
2010/09/21 17:23:54 [error] 22051#0: *2 open() "/home/insidernews.ru/www/1.html" failed (2: No such file or directory), client: 109.108.38.52, server: insidernews.ru, request: "GET /1.html HTTP/1.1", host: "insidernews.ru"
2010/09/21 17:24:36 [error] 22051#0: *2 open() "/home/insidernews.ru/www/1.html" failed (2: No such file or directory), client: 109.108.38.52, server: insidernews.ru, request: "GET /1.html HTTP/1.1", host: "insidernews.ru"
2010/09/21 17:24:37 [error] 22051#0: *2 open() "/home/insidernews.ru/www/1.html" failed (2: No such file or directory), client: 109.108.38.52, server: insidernews.ru, request: "GET /1.html HTTP/1.1", host: "insidernews.ru"
2010/09/21 17:30:35 [error] 22051#0: *6 open() "/home/insidernews.ru/www/1.html" failed (2: No such file or directory), client: 109.108.38.52, server: insidernews.ru, request: "GET /1.html HTTP/1.1", host: "insidernews.ru"
[/code]

acess....
[code]
109.108.38.52 - - [21/Sep/2010:16:41:31 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:16:41:56 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:23:49 +0200] "GET /1.html HTTP/1.1" 404 148 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:23:54 +0200] "GET /1.html HTTP/1.1" 404 148 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:24:36 +0200] "GET /1.html HTTP/1.1" 404 148 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:24:37 +0200] "GET /1.html HTTP/1.1" 404 148 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:25:41 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:25:50 +0200] "GET /phpinfo.php HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:28:52 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:29:35 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:17:30:35 +0200] "GET /1.html HTTP/1.1" 404 148 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
109.108.38.52 - - [21/Sep/2010:18:23:51 +0200] "GET / HTTP/1.1" 404 61 "-" "Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9"
[/code]
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready