Welcome! Log In Create A New Profile

Advanced

Re: upload module error

March 29, 2011 06:52AM
mr valery,


1. version of the nginx i am using is 0.8.54

2.my exact config file is


worker_processes 20;



error_log logs/error.log notice;



working_directory /usr/local/nginx/html/;



events {

worker_connections 1024;

}



http{

include mime.types;

default_type application/octet-stream;



server {

server_name zd-ubuntu1;

listen 8001;



client_max_body_size 0;



root /usr/local/nginx/html;



location / {

index 23.html;
# this is the html form i am using to upload after getting from the server
}







# Upload form should be submitted to this location

location /upload {

# Pass altered request body to this location

upload_pass /test;



# Store files to this directory

# The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should exist


upload_store /home/administrator/Desktop/vetri/upload/tmp;



# Allow uploaded files to be read only by user

upload_store_access user:rw group:rw all:rw;



# Set specified fields in request body

upload_set_form_field $upload_field_name.name "$upload_file_name";

upload_set_form_field $upload_field_name.content_type "$upload_content_type";

upload_set_form_field $upload_field_name.path "$upload_tmp_path";



# Inform backend about hash and size of a file

upload_aggregate_form_field $upload_field_name.md5 "$upload_file_md5";

upload_aggregate_form_field $upload_field_name.size "$upload_file_size";



upload_pass_form_field "^submit$|^description$";







upload_cleanup 400-505;





}



# Pass altered request body to a backend

location /test {

proxy_pass https://zd-ubuntu1:8022;





}

}


server{

listen 8022;



}

}


3.my log information ----->this is from my access log


127.0.1.1 - - [29/Mar/2011:16:21:44 +0530] "POST /upload HTTP/1.0" 301 185 "https://zd-ubuntu1:8001/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16"
192.168.110.198 - - [29/Mar/2011:16:21:44 +0530] "POST /upload HTTP/1.1" 301 185 "https://zd-ubuntu1:8001/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16"
192.168.110.198 - - [29/Mar/2011:16:21:44 +0530] "GET /upload/ HTTP/1.1" 405 173 "https://zd-ubuntu1:8001/" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16"




this is the access log information after i uploaded single file




i am ready to give whatever the information needed for this problem.

and thanks for the reply
Subject Author Posted

upload module error

vetri March 29, 2011 05:00AM

Re: upload module error

Valery Kholodkov March 29, 2011 05:30AM

Re: upload module error

vetri March 29, 2011 05:50AM

Re: upload module error

Valery Kholodkov March 29, 2011 06:12AM

Re: upload module error

vetri March 29, 2011 06:52AM

Re: upload module error

Valery Kholodkov March 29, 2011 07:48AM

Re: upload module error

vetri March 29, 2011 09:17AM

Re: upload module error

Valery Kholodkov March 29, 2011 09:42AM

Re: upload module error

vetri March 30, 2011 12:00AM

Re: upload module error

vetri March 30, 2011 12:36AM

Re: upload module error

Yanxin Z. March 29, 2011 11:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready