upload module 2.0.4

maxhl at hitline.net.ua maxhl at hitline.net.ua
Thu Aug 7 17:55:40 MSD 2008


Подскажите как его совместить с php-fpm ?
Файл аплоадится в пхп скрипт.
_________________________________________________________________
  location ~ .php$ {
                fastcgi_pass unix:/mnt/md0/php-fcgi.sock;
                include  /usr/local/nginx/conf/phpcgi.conf;
                fastcgi_param SCRIPT_FILENAME 
/home/content$fastcgi_script_name;
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param  REQUEST_BODY_FILE  $request_body_file;
fastcgi_connect_timeout 30;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 32k;
fastcgi_temp_file_write_size 32k;
fastcgi_intercept_errors on;
fastcgi_temp_path /mnt/md0;
fastcgi_param  QUERY_STRING    $query_string;
fastcgi_param  CONTENT_TYPE    $content_type;
fastcgi_param  CONTENT_LENGTH  $content_length;
fastcgi_param  REQUEST_URI     $request_uri;
fastcgi_param  REQUEST_METHOD  $request_method;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;
fastcgi_param  SCRIPT_NAME        $request_uri;
fastcgi_param   REDIRECT_STATUS 200;
fastcgi_index  index.php;
client_body_temp_path /mnt/md0;
fastcgi_param   DOCUMENT_ROOT   $document_root;
    }
__________________________________________________________________
Достаточно ли будет добавить в локейшен ?

         upload_pass   /mnt/md0;
        # Store files to this location
        upload_store /mnt/md0;
        # 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";
        # Pass matching fields from client to backend
        upload_pass_form_field "^submit$|^description$";

 С уважением Max.
 maxhl at hitline.net.ua 71006063







More information about the nginx-ru mailing list