| Nginx-ru mailing list archive (nginx-ru@sysoev.ru) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: вопрос про старую версию
 
 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 ^/  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        ;
>             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@xxxxxxxxx
 |