Ошибка странная
Kostya Alexandrov
koticka at mail.ru
Sat Aug 2 22:10:24 MSD 2008
nginx спрашивает по http 1.0, повтори гет из телнета только с GET
/twiki/bin/view/ HTTP/1.0
Phil Kulin wrote:
> При обращении к сайту 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
> <http://91.122.46.213>, server: babylon.bz8.ru
> <http://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
> <http://1.dair.cz8.ru>"
>
> Ошибка повторяется и на 0.5.35 и на 0.6.32
> FreeBSD-7.0R , ULE
>
> Захожу телнетом:
> phil at phil:~$ telnet 1.dair.cz8.ru <http://1.dair.cz8.ru> 8083
> Trying 80.93.48.162...
> Connected to 1.dair.cz8.ru <http://1.dair.cz8.ru>.
> Escape character is '^]'.
> GET /twiki/bin/view/ HTTP/1.1
> Host: 1.dair.cz8.ru <http://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
More information about the nginx-ru
mailing list