Nginx + TomCat upload files

Alexandr Lopatin kino at profy.com
Fri Nov 23 09:19:11 MSK 2007


Доброе время суток!

Thursday, November 22, 2007, 7:00:53 PM, you wrote:

>
логи смотрели? желательно debug 
конфиг и логи покажите ... 


nginx.conf
user  apache apache;
worker_processes  1;
pid     /usr/local/nginx/logs/nginx.pid;
error_log    /var/log/nginx/error_log debug;
worker_rlimit_nofile 8192;
events {
    worker_connections  4096;
    use epoll;
}
http {
    include       conf/mime.types;
    default_type  application/octet-stream;
    upstream backend {
        server localhost:8083;
    }
    client_header_timeout  3m;
    client_body_timeout    3m;
    client_max_body_size   10m;
    send_timeout           3m;
    client_header_buffer_size    8k;
    large_client_header_buffers  4 4k;
    gzip off;
    gzip_min_length  1100;
    gzip_buffers     4 8k;
    gzip_comp_level  1;
    gzip_proxied     expired no-cache no-store private auth;
    gzip_types       text/plain application/xml application/x-javascript;
    output_buffers   2 32k;
    postpone_output  1460;
    client_body_temp_path /tmp/nginx/client;
proxy_temp_path /tmp/nginx/proxy;
    
    sendfile         on;
    tcp_nopush       on;
    tcp_nodelay      on;
    keepalive_timeout 75 75;  
   log_format  gzip  '$remote_addr - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio" "$request_time"  "" ""';
    error_log    /var/log/nginx/error_log debug;
    include conf/koi-win;
    include conf/koi-utf;
    include conf/win-utf;
    source_charset windows-1251;
    server {
        listen 80 default;
        server_name my_server;

        access_log   /var/log/nginx/access_log gzip;
        error_log    /var/log/nginx/error_log debug;

        location / {
            proxy_pass http://localhost:8083/;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

    }

}


Конфиг я крутил по разным параметрам (таймауты, буферы).
Отладочный лог очень большой получается. Кладу в атач.


-- 
С наилучшими пожеланиями,
 Alexandr                            mailto:kino at profy.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20071123/95d0fe0f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error_log.gz
Type: application/x-gzip
Size: 25058 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20071123/95d0fe0f/attachment.bin>


More information about the nginx-ru mailing list