вопрос про старую версию

Nikolay Grebnev nick at algen.spb.ru
Mon Mar 26 21:22:24 MSD 2007


Стоит на сервере старая версия - 0.3.37 . Попытался в конфиге (ниже) третий
блок server передвинуть вверх (чтобы он стал дефолтным), но после этого как
будто отрубились proxy_*_timeout - и посыпались 502 ошибки, пришлосе вернуть
обратно вниз.

Вопрос - это у меня глюки / ошибка неизвестна/ ошибка исправлена в свежих
версиях?
(просто страшно переходить на новую версию - до этого все работало (работает
- не трогай ))

Спасибо


user  apache;
worker_processes  3;

error_log  logs/error.log;

events {
    worker_connections  1024;
}

http {
    include       conf/mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    server_names_hash_bucket_size 64;

    keepalive_timeout  75 20;

    gzip  on;

    log_format  vhosts  '$Host '
                        '$remote_addr - $remote_user [$time_local] '
                      '"$request" $status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" '
                      '$upstream_response_time';

    access_log  logs/access.log vhosts;

    server {
        listen 80;
        server_name  www5.photodb.org;
        location / {
            root   /var/www/vhosts/html/static;
            index  index.html index.htm;
            expires      1y;
        }
    }

    server {
        listen  80;
        server_name jobtest.ru atfriends.ru;

        location / {
            rewrite ^/ http://www.$server_name redirect;
        }
    }

    server {
        listen  80;
        index index.php;
        client_max_body_size       16m;
        client_body_buffer_size    128k;
        server_name  www.jobtest.ru www.atfriends.ru;

        charset UTF-8;
        location / {
            proxy_pass        http://localhost:81/;
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header  Via  $http_via;
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
            index index.php;
            rewrite_log  on;
proxy_connect_timeout      600;
proxy_send_timeout         600;
proxy_read_timeout         600;

        }
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20070326/02fad142/attachment.html>


More information about the nginx-ru mailing list