Welcome! Log In Create A New Profile

Advanced

Re: passing HttpUploadProgressModule path to configure

Maciej Dziardziel
October 07, 2010 03:50AM
nginx.conf:



user www-data;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
# multi_accept on;
}

http {
include /etc/nginx/mime.types;

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

proxy_cache_path /var/cache/nginx/mydomain levels=1:2
keys_zone=mydomain:8m max_size=1000m inactive=600m;

upload_progress proxied 60m;
upload_progress_content_type "application/json";
upload_progress_json_output;

server {
listen 8001;
default_type application/octet-stream;

server_name stage.mydomain.pl www.stage.mydomain.pl;

access_log /var/log/vhosts/mydomain_stage/nginx_access.log;

error_log /var/log/vhosts/mydomain_stage/nginx_error.log crit;


location / {

proxy_pass http://www.stage.mydomain.pl/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;

proxy_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 5m;

#upload progress tracking requires
NginxHttpUploadProgressModule, available on github
track_uploads proxied 6000s;
}

location /s/form/File/progress {
report_uploads proxied;
}

location /file {
proxy_pass http://www.stage.mydomain.pl/file;

include /etc/nginx/proxy.conf;
proxy_cache mydomain_stage;
proxy_cache_valid 200 302 7d;
proxy_cache_valid 404 10m;
proxy_temp_path /var/cache/nginx/mydomain_stage/tmp;
}

location /images {
root /var/www/mydomain_stage/web;
expires 7d;
#access_log off;
}
}

}



On Thu, Oct 7, 2010 at 5:14 AM, Sergey A. Osokin <osa@freebsd.org.ru> wrote:
> On Thu, Oct 07, 2010 at 01:39:58AM +0200, Maciej Dziardziel wrote:
>> Hi
>>
>> I am tying to install HttpUploadProgressModule. It works well,
>> but (probalby due to  some misconfiguration) it stores data in
>> /usr/html/progress,
>> and complains if it doesn't exists. What should i set additionaly to
>> change this path?
>>
>> Current configure options:
>>
>> ./configure --prefix=/usr \
>>         --conf-path=/etc/nginx/nginx.conf \
>>         --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
>>         --pid-path=/var/run/nginx.pid \
>>         --http-proxy-temp-path=/var/lib/nginx/proxy \
>>         --http-client-body-temp-path=/var/lib/nginx/body \
>>         --error-log-path=/var/log/nginx/error.log \
>>         --http-log-path=/var/log/nginx/access.log \
>>         --with-http_stub_status_module \
>>         --add-module=/root/nginx/nginx-upload-progress-module/
>>
>> nginx 0.8.52
>
> Could you show your configuration file.
>
> --
> Sergey A. Osokin
> osa@FreeBSD.ORG
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

passing HttpUploadProgressModule path to configure

Maciej Dziardziel October 06, 2010 07:42PM

Re: passing HttpUploadProgressModule path to configure

Sergey A. Osokin October 06, 2010 11:20PM

Re: passing HttpUploadProgressModule path to configure

Maciej Dziardziel October 07, 2010 03:50AM

Re: passing HttpUploadProgressModule path to configure

Brice Figureau October 13, 2010 05:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 326
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