RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

Newsletter script
nginx http server can`t upload big file

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
sherayusuf3



Joined: 18 Jan 2009
Posts: 82
Location: Jakarta Indonesia

PostPosted: Jan 18, 2009 4:40 am    Post subject: nginx http server can`t upload big file Reply with quote

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


Quote:
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:
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
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
PilgrimX182



Joined: 22 Mar 2006
Posts: 1901
Location: UFO Lab

PostPosted: Jan 19, 2009 7:09 am    Post subject: Reply with quote

That is correct. nginx caches upload stream, no way to track it through perl then.
Back to top
View user's profile Send private message Visit poster's website
sherayusuf3



Joined: 18 Jan 2009
Posts: 82
Location: Jakarta Indonesia

PostPosted: Jan 20, 2009 5:33 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group