XFileSharing Pro - nginx http server can`t upload big file

Message
Author
sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

nginx http server can`t upload big file

#1 Postby sherayusuf3 » Jan 18, 2009 4:40 am

when i try to upload big file more than 1 mb to my nginx xfilesharing extra file server

i cant see progess bar and but status upload is complete

there is my nginx.conf

user www-data;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

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

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

#location ~ \.(aspx|cgi|pl|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)$ {
##location ~ \.php$ {
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_index index.cgi;
#fastcgi_param SCRIPT_FILENAME /var/www/cgi-bin$fastcgi_script_name;
#include /etc/nginx/fastcgi_params;
#}


my vhost config

Code: Select all

server {
        listen   80;
        server_name  localhost;

        access_log  /var/log/nginx/localhost.access.log;

        location / {
                root   /var/www/nginx-default;
                index  index.html index.htm;
        }

        location /doc {
                root   /usr/share;
                autoindex on;
                allow 127.0.0.1;
                deny all;
        }

        location /images {
                root   /usr/share;
                autoindex on;
        }

        #error_page  404  /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
                root   /var/www/nginx-default;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
                #proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
                #fastcgi_pass   127.0.0.1:9000;
                #fastcgi_index  index.php;
                #fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
                #includefastcgi_params;
        #}


        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
                #deny  all;
        #}
}


# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#listen   8000;
#listen   somename:8080;
#server_name  somename  alias  another.alias;

#location / {
#root   html;
#index  index.html index.htm;
#}
#}


# HTTPS server
#
#server {
#listen   443;
#server_name  localhost;

#ssl  on;
#ssl_certificate  cert.pem;
#ssl_certificate_key  cert.key;

#ssl_session_timeout  5m;

#ssl_protocols  SSLv2 SSLv3 TLSv1;
#ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
#ssl_prefer_server_ciphers   on;

#location / {
#root   html;
#index  index.html index.htm;
#}
#}

my service status

root@nginx:/var/www/cgi-bin# ps -ax | grep fcgi
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
4200 ? S 0:00 perl-fcgi-pm
11093 ? S 0:00 perl-fcgi
11095 ? S 0:00 perl-fcgi
11097 ? S 0:00 perl-fcgi
11099 ? S 0:00 perl-fcgi
13309 ? S 0:00 perl-fcgi
15365 pts/0 S+ 0:00 grep fcgi


how i can fixed it?
thnk for your help

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jan 19, 2009 7:09 am

That is correct. nginx caches upload stream, no way to track it through perl then.

sherayusuf3
Posts: 94
Joined: Jan 18, 2009 4:29 am

#3 Postby sherayusuf3 » Jan 20, 2009 5:33 am

done....
add client_max_body_size 2000m;
to your nginx.conf
FYI all, if using nginx http server, you can see uplaod status bar, but the upload rpocess is complete sucessful

Thnks