ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: upload module 2.0.4



Подскажите как его совместить с 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@xxxxxxxxxxxxxx 71006063





 




Copyright © Lexa Software, 1996-2009.