# Rebuilding Nginx

**URL:** <https://www.ruby-forum.com/t/rebuilding-nginx/217815>\
**Category:** NGINX\
**Created:** [March 14, 2012, 4:56am UTC](https://www.ruby-forum.com/t/rebuilding-nginx/217815 "2012-03-14T04:56:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 14, 2012, 4:56am UTC](https://www.ruby-forum.com/t/rebuilding-nginx/217815/1 "2012-03-14T04:56:24Z")

</div>

I want to add a module to my nginx build.

The only problem is that I don’t know where the source files are located  
at.

How do I find them, and then how to I rebuild with of my modules, plus  
the new one?

---

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 14, 2012, 7:49am UTC](https://www.ruby-forum.com/t/rebuilding-nginx/217815/2 "2012-03-14T07:49:32Z")

</div>

On Tue, 2012-03-13 at 23:55 -0400, adam estes wrote:

> I want to add a module to my nginx build.
> 
> The only problem is that I don’t know where the source files are located at.

How did you install Nginx? If you installed from a repository (e.g.  
with yum or apt-get), then there is no source. You will need to  
download the tar archive and build from source.

> How do I find them, and then how to I rebuild with of my modules, plus  
> the new one?

Usually you use something like:

./configure --add-module=/path/to/module/source --other-options  
make  
make install

You can get a good idea of what --other-options should be by running

nginx -V

and noting the configure arguments of your current binary.

Regards,  
Cliff
