400 Bad Request While uploading file through web-interface

872 views
Skip to first unread message

Evgeny Pryakhin

unread,
Jul 26, 2013, 9:22:43 AM7/26/13
to sea...@googlegroups.com



Hello. I have following setup: nginx+ssl and seafile httpserver and hub both are behind nginx.
All works fine, but, when I uploading huge file through web-interface, progress bar not shown and firebug shows me errors.
I think that this failed requests are the uploading status requests. But file uploads successfully and I can show and download it.

Why this error occured?

My nginx configuration:









location ~ \.php$ {
        try_files $uri =404;
        include fastcgi_params;
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_cache  one;
        fastcgi_cache_min_uses 3;
        fastcgi_cache_valid 200 301 302 304 5m;
        fastcgi_cache_key "$request_method|$host|$request_uri";
        fastcgi_param       SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_ignore_client_abort     off;
        fastcgi_buffer_size 16K;
        fastcgi_buffers 192 4k;
    }

    location = /favicon.ico {
        log_not_found off;
        access_log off;
    }

    location /seafile {
            fastcgi_pass    127.0.0.1:8000;
            fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
            fastcgi_param   PATH_INFO           $fastcgi_script_name;
            fastcgi_param    SERVER_PROTOCOL        $server_protocol;
            fastcgi_param   QUERY_STRING        $query_string;
            fastcgi_param   REQUEST_METHOD      $request_method;
            fastcgi_param   CONTENT_TYPE        $content_type;
            fastcgi_param   CONTENT_LENGTH      $content_length;
            fastcgi_param    SERVER_ADDR         $server_addr;
            fastcgi_param    SERVER_PORT         $server_port;
            fastcgi_param    SERVER_NAME         $server_name;
        fastcgi_param   HTTPS               on; # enable this line only if https is used

        location /seafile/media {
                    rewrite ^/seafile/media(.*)$ /media$1 break;
                    root /mnt/www-data/seafile/seafile-server-1.7.0/seahub;
            expires +30d;
            add_header Cache-Control public;
            }

            location /seafile/http {
                    rewrite ^/seafile/http(.*)$ $1 break;
                    proxy_pass http://127.0.0.1:8082;
                    client_max_body_size 0;
                    proxy_max_temp_file_size 0;
            }
    }

Message has been deleted

Evgeny Pryakhin

unread,
Jul 26, 2013, 12:03:00 PM7/26/13
to sea...@googlegroups.com
I'm Sorry, I found this explanation.

пятница, 26 июля 2013 г., 17:22:43 UTC+4 пользователь Evgeny Pryakhin написал:
Reply all
Reply to author
Forward
0 new messages