# Nginx\_upload\_progress

**URL:** <https://www.ruby-forum.com/t/nginx-upload-progress/227425>\
**Category:** NGINX\
**Created:** [March 15, 2013, 3:48am UTC](https://www.ruby-forum.com/t/nginx-upload-progress/227425 "2013-03-15T03:48:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaychris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@jaychris](https://www.ruby-forum.com/u/jaychris)\
**Post date:** [March 15, 2013, 3:48am UTC](https://www.ruby-forum.com/t/nginx-upload-progress/227425/1 "2013-03-15T03:48:36Z")

</div>

I’m trying to compile in the nginx\_upload\_progress module into an RPM.  
I’m  
using the SPEC file provided with v1.2.7 from the Nginx repos. I  
downloaded  
the upload\_progress module, opened up the source tar archive, copied the  
module to nginx-1.2.7/nginx-upload-progress-module, and added this line  
to  
my SPEC file:

–add-module=%{\_builddir}/%{name}-%{version}/nginx-upload-progress-module  
\

When run the rpmbuild process, it looks to me like it is successfully  
finding and compiling the module (excerpts from the build log):

gcc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror  
-g  
-O2 -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I  
objs -I src/http -I src/http/modules -I src/mail   
-o  
objs/addon/nginx-upload-progress-module/ngx\_http\_uploadprogress\_module.o  
\

/root/rpmbuild/BUILD/nginx-1.2.7/nginx-upload-progress-module/ngx\_http\_uploadprogress\_module.c

objs/addon/nginx-upload-progress-module/ngx\_http\_uploadprogress\_module.o  
\

Checking for unpackaged file(s): /usr/lib/rpm/check-files  
/root/rpmbuild/BUILDROOT/nginx-1.2.7-1.el6.ngx.x86\_64  
Wrote: /root/rpmbuild/SRPMS/nginx-1.2.7-1.el6.ngx.src.rpm  
Wrote: /root/rpmbuild/RPMS/x86\_64/nginx-1.2.7-1.el6.ngx.x86\_64.rpm  
Wrote: /root/rpmbuild/RPMS/x86\_64/nginx-debug-1.2.7-1.el6.ngx.x86\_64.rpm  
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.tN7cRa

- umask 022
- cd /root/rpmbuild/BUILD
- cd nginx-1.2.7
- /bin/rm -rf /root/rpmbuild/BUILDROOT/nginx-1.2.7-1.el6.ngx.x86\_64
- exit 0

So, the build completes successfully, but when I install the rpm and run  
“nginx -V”, I get:

nginx version: nginx/1.2.7  
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)  
TLS SNI support enabled  
configure arguments: --prefix=/etc/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 --pid-path=/var/run/nginx.pid  
–lock-path=/var/run/nginx.lock  
–http-client-body-temp-path=/var/cache/nginx/client\_temp  
–http-proxy-temp-path=/var/cache/nginx/proxy\_temp  
–http-fastcgi-temp-path=/var/cache/nginx/fastcgi\_temp  
–http-uwsgi-temp-path=/var/cache/nginx/uwsgi\_temp  
–http-scgi-temp-path=/var/cache/nginx/scgi\_temp --user=nginx  
–group=nginx  
–with-http\_ssl\_module --with-http\_realip\_module  
–with-http\_addition\_module  
–with-http\_sub\_module --with-http\_dav\_module --with-http\_flv\_module  
–with-http\_mp4\_module --with-http\_gzip\_static\_module  
–with-http\_random\_index\_module --with-http\_secure\_link\_module  
–with-http\_stub\_status\_module --with-mail --with-mail\_ssl\_module  
–with-file-aio --with-ipv6 --with-cc-opt=‘-O2 -g’

… no upload-progress module.

Am I missing a part of the process here?

Thanks!

Posted at Nginx Forum:

> **[nginx\_upload\_progress](https://forum.nginx.org/read.php?2,237384,237384#msg-237384)**
>
> I'm trying to compile in the nginx\_upload\_progress module into an RPM. I'm using the SPEC file provided with v1.2.7 from the Nginx repos. I downloaded the upload\_progress module, opened up the source tar archive, copied the module to...

---

<div class="post-metadata">

**Author:** ![jaychris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/d78d45/32.png) [@jaychris](https://www.ruby-forum.com/u/jaychris)\
**Post date:** [March 15, 2013, 6:18pm UTC](https://www.ruby-forum.com/t/nginx-upload-progress/227425/2 "2013-03-15T18:18:41Z")

</div>

Never mind, I guess there are two configure statements in the spec file.  
I  
added the module to both and it’s working fine.

Posted at Nginx Forum:

> **[Re: nginx\_upload\_progress](https://forum.nginx.org/read.php?2,237384,237409#msg-237409)**
>
> I'm trying to compile in the nginx\_upload\_progress module into an RPM. I'm using the SPEC file provided with v1.2.7 from the Nginx repos. I downloaded the upload\_progress module, opened up the source tar archive, copied the module to...
