ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ошибка странная


  • To: nginx-ru@xxxxxxxxx
  • Subject: Ошибка странная
  • From: "Phil Kulin" <schors@xxxxxxxxx>
  • Date: Sat, 2 Aug 2008 21:59:05 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=8WFtnGUh4RvDgI3UjJqWVNqGibZHM5+WLmzKbTnlVUs=; b=HpSWQEpwy5TCNTGkRVfulGxI+EwWrI2PcciN1AIzzhDxDsmYkB6i1COCl89ALzM0er VjIMARI+wKhtDMXNYvZ+gg92k+4/PNlKuWjeTQ4gy5Fcz93EJk3m9uD46sNM9lmIjmsi JVYPvl9xtg1G4AIOKm3UDal81ubFc5adE8ihU=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=hiacwQm0kpBgsmVkh3jtDw40tMHirgZPBbhiG5L+JvvoIpnpn9nvNx11rGVaufV06V z72dVEGRhxr3A5fyJhn4dbp/zBXvI1HMTzI1y9Bst0kUGVC5FE5TbQnesFK/hxmlJOk0 yCee4wHtnG1S1FONKRUA4hQ1jEKj15wBXtiII=

При обращении к сайту nginx выдаёт ошибку
2008/08/02 21:49:00 [error] 79037#0: *106 upstream sent invalid header while reading response header from upstream, client: 91.122.46.213, server: babylon.bz8.ru, request: "GET /twiki/bin/view HTTP/1.1", upstream: "http://127.0.0.1:80/twiki/bin/view", host: "1.dair.cz8.ru"

Ошибка повторяется и на 0.5.35 и на 0.6.32
FreeBSD-7.0R , ULE

Захожу телнетом:
phil@phil:~$ telnet 1.dair.cz8.ru 8083
Trying 80.93.48.162...
Connected to 1.dair.cz8.ru.
Escape character is '^]'.
GET /twiki/bin/view/ HTTP/1.1
Host: 1.dair.cz8.ru

HTTP/1.1 200 OK
Date: Sat, 02 Aug 2008 17:23:11 GMT
Server: Apache/1.3.41 (Unix) PHP/5.2.5
Content-Length: 17349
Set-Cookie: TWIKISID=ab6d410d87141c38a6d05353da715181; path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

f57
<!DOCTYPE [блаблаблабла

Посмотреть что отдаёт апач без проксирования можно вот так:
http://1.dair.cz8.ru:8083/twiki/bin/view/

конфиг nginx прост до безобразия:
user  www www;
worker_processes  2;

error_log  /var/log/nginx-error.log error;
pid        /var/run/nginx.pid;

events {
    worker_connections  2000;
    use kqueue;
}

http {
    include       mime.types;
    default_type  text/html;
    sendfile  on;
    access_log  off;
    large_client_header_buffers 32 16k;
    client_header_buffer_size   2k;
    client_header_timeout  10m;
    client_body_timeout    60m;
    ignore_invalid_headers off;
    server_names_hash_bucket_size 128;

    server {
        include listen.conf;
        location / {
            access_log  off;
            proxy_pass  http://127.0.0.1:80/;

            client_max_body_size       10m;
            client_body_buffer_size    512k;

            proxy_connect_timeout      600;
            proxy_send_timeout         300;
            proxy_read_timeout         300;
            proxy_send_lowat           8191;

            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

            proxy_buffer_size          4k;
            proxy_buffers              4 32k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;

            proxy_temp_path            /tmp/nginx;
        }
    }
}

Что я делаю не так?

--
Non nobis Domine non nobis sed Nomini Tuo da gloriam
Phil Kulin


 




Copyright © Lexa Software, 1996-2009.