ÓÁÂÖ. <br><br><br><br># nginx -V<br>nginx version: nginx/0.8.46<br>configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=&#39;-I /usr/local/include&#39; --with-ld-opt=&#39;-L /usr/local/lib&#39; --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-file-aio --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --with-http_flv_module --with-http_geoip_module --add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_mod_h264_streaming-2.2.7 --with-http_stub_status_module --add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12 --add-module=/var/ports/basejail/usr/ports/www/nginx-devel/work/nginx_uploadprogress_module-0.8 --with-pcre<br>

<br><br># Upload form should be submitted to this location<br>location /upload-file/ {<br>š# Pass altered request body to this location<br>šupload_passšš @php;<br>šupload_pass_args on;<br><br>šupload_limit_rate 500k;<br>
<br>
š# Store files to this location<br>šupload_store /tmp/uploads/;<br><br>š# Allow uploaded files to be read only by user<br>šupload_store_access user:rw;<br><br>š# Set specified fields in request body<br>šupload_set_form_field &quot;${upload_field_name}_name&quot; $upload_file_name;<br>

šupload_set_form_field &quot;${upload_field_name}_content_type&quot; $upload_content_type;<br>šupload_set_form_field &quot;${upload_field_name}_path&quot; $upload_tmp_path;<br><br>š# Inform backend about hash and size of a file<br>

š#upload_aggregate_form_field &quot;${upload_field_name}_md5&quot; $upload_file_md5;<br>šupload_aggregate_form_field &quot;${upload_field_name}_name&quot; $upload_file_name;<br>šupload_aggregate_form_field &quot;${upload_field_name}_size&quot; $upload_file_size;<br>

<br>š# Pass matching fields from client to backend<br>šupload_pass_form_field &quot;^submit$|^description$^file$&quot;;<br>šupload_cleanup 400 404 499 500-505;<br>štrack_uploads proxied 30s;<br>š}<br><br clear="all"><br>
<br>
-- <br>Yours sincerely,<br>Vladimir Getmanshchuk<br><br>UNIX System Administrator<br>Openfilm, LLC<br><br>Email: <a href="mailto:vladget@openfilm.com">vladget@openfilm.com</a><br>Skype: vladimir.getmanshchuk<br><br>