Re[2]: вопрос про старую версию

Denis F. Latypoff latypoff at yandex.ru
Mon Mar 26 22:55:50 MSD 2007


Hello Nikolay,

Tuesday, March 27, 2007, 1:39:12 AM, you wrote:

> tnx, помогло.
> а что это все-таки было?

http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#listen

> On 3/26/07, Denis F. Latypoff <latypoff at yandex.ru> wrote:
>>
>> Hello Nikolay,
>>
>> Tuesday, March 27, 2007, 12:22:24 AM, you wrote:
>>
>> > Стоит на сервере старая версия - 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;
>>
>> >         }
>> >     }
>> > }
>>
>> server {
>>        listen 80 default;
>> }
>>
>> ?
>>
>> --
>> Best regards,
>> Denis Latypoff                          mailto:latypoff at yandex.ru
>>
>>
>>



-- 
Best regards,
 Denis Latypoff                          mailto:latypoff at yandex.ru






More information about the nginx-ru mailing list