# Mainline does not include gzip module?

**URL:** <https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328>\
**Category:** NGINX\
**Created:** [January 4, 2014, 2:24am UTC](https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328 "2014-01-04T02:24:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [January 4, 2014, 2:24am UTC](https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328/1 "2014-01-04T02:24:09Z")

</div>

i just replaced a stable install with the mainline version (1.5.8) and  
noticed that the outputted files are not being gzipped.  
i ran nginx -V and do not see any arguments that enable gzip.  
is there a reason why the stable version included gzip and this mainline  
does not?  
do i need to manually build nginx to include the gzip module?  
if so, does that mean i need to rebuild nginx every time there is a new  
update?  
thanks

Posted at Nginx Forum:

> **[mainline does not include gzip module?](https://forum.nginx.org/read.php?2,245997,245997#msg-245997)**
>
> i just replaced a stable install with the mainline version (1.5.8) and noticed that the outputted files are not being gzipped. i ran nginx -V and do not see any arguments that enable gzip. is there a reason why the stable version included gzip and...

---

<div class="post-metadata">

**Author:** ![ura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@ura](https://www.ruby-forum.com/u/ura)\
**Post date:** [January 4, 2014, 2:34am UTC](https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328/2 "2014-01-04T02:34:40Z")

</div>

On Friday 03 January 2014 20:22:28 ura wrote:

> i just replaced a stable install with the mainline version (1.5.8) and  
> noticed that the outputted files are not being gzipped.  
> i ran nginx -V and do not see any arguments that enable gzip.  
> is there a reason why the stable version included gzip and this mainline  
> does not?

The gzip module is compiled by default, unless explicitly disabled  
using the --without-http\_gzip\_module argument.

> do i need to manually build nginx to include the gzip module?

No, you don’t. It is included in both packages stable and mainline.

wbr, Valentin V. Bartenev

---

<div class="post-metadata">

**Author:** ![ura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@ura](https://www.ruby-forum.com/u/ura)\
**Post date:** [January 4, 2014, 2:52am UTC](https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328/3 "2014-01-04T02:52:11Z")

</div>

thanks for responding. 🙂

so… has a change been made in the way i would activate the gzip  
process  
between the stable and mainline versions?  
in nginx.conf?

this is the list of options i was successfully using in stable (built  
through trial and error):  
gzip on;  
gzip\_http\_version 1.0;  
gzip\_comp\_level 6;  
gzip\_proxied any;  
gzip\_min\_length 100;  
gzip\_buffers 16 8k;  
gzip\_types text/plain text/css application/x-javascript  
application/json  
text/xml application/xml application/xml+rss text/javascript;  
gzip\_disable “msie6”;  
gzip\_vary on;

any other thoughts on why gzip would appear to not be functioning for me  
here?

Posted at Nginx Forum:

> **[Re: mainline does not include gzip module?](https://forum.nginx.org/read.php?2,245997,245999#msg-245999)**
>
> i just replaced a stable install with the mainline version (1.5.8) and noticed that the outputted files are not being gzipped. i ran nginx -V and do not see any arguments that enable gzip. is there a reason why the stable version included gzip and...

---

<div class="post-metadata">

**Author:** ![ura](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/c6cbf5/32.png) [@ura](https://www.ruby-forum.com/u/ura)\
**Post date:** [January 4, 2014, 2:53am UTC](https://www.ruby-forum.com/t/mainline-does-not-include-gzip-module/238328/4 "2014-01-04T02:53:57Z")

</div>

ah, i found the answer…  
i needed to change the javascript mimetype to ‘application/javascript’

Posted at Nginx Forum:

> **[Re: mainline does not include gzip module?](https://forum.nginx.org/read.php?2,245997,246000#msg-246000)**
>
> i just replaced a stable install with the mainline version (1.5.8) and noticed that the outputted files are not being gzipped. i ran nginx -V and do not see any arguments that enable gzip. is there a reason why the stable version included gzip and...
