masterzen / nginx-upload-progress-module

Nginx module implementing an upload progress system, that monitors RFC1867 POST uploads as they are transmitted to upstream servers.
http://wiki.codemongers.com/NginxHttpUploadProgressModule
Other
432 stars 101 forks source link

nginx-upload-progress-module appears to be not loaded #47

Closed khavishbhundoo closed 8 years ago

khavishbhundoo commented 8 years ago

I compile nginx with nginx upload progress module but i still can't use any of the configuration variables.I get unknown directive error for all variables.Below is an example

[emerg] unknown directive "track_uploads"

nginx version: nginx/1.11.3 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.2h 3 May 2016 TLS SNI support enabled configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_v2_module --with-openssl=/root/openssl-1.0.2h --with-http_realip_module --with-http_geoip_module --with-http_sub_module --with-http_random_index_module --with-http_gzip_static_module --with-http_stub_status_module --add-module=../nginx-upload-module --add-module=../nginx-upload-progress-module

masterzen commented 8 years ago

You actually need to load the module with something like this:

load_module /path/to/ngx_http_uploadprogress_module.so;
khavishbhundoo commented 8 years ago

Ahh totally my fault ....Thanks for the quick reply

If anyone else is wondering , you need to do the following

Compile as follows --add-dynamic-module=../nginx-upload-progress-module

Then add the following line at the very top of /etc/nginx.conf

load_module "modules/ngx_http_uploadprogress_module.so";