<div dir="ltr">Hi,<div><br></div><div>Recently I upgraded my nginx to 1.12 version from 1.10 branch.</div><div><br></div><div>The build from source went through without any issues, but while starting Nginx I am receiving this error:</div><div><br></div><div><font face="monospace"><b>>>[emerg] 342#342: unknown directive "gzip" in /usr/local/apps/nginx/etc/conf.d/gzip.conf:2</b></font></div><div><font face="monospace"><b><br></b></font></div><div>GZIP was working fine on 1.10 so I am really confused what the issue is here, the GZIP module is enabled by default is my understanding.</div><div><br></div><div>Can anybody guide me in the right direction what's the issue here.    </div><div><br></div><div>Here is my configure script for reference</div><div><font face="monospace" color="#999999"><b><br></b></font></div><div><div><font face="monospace" color="#666666"><b style="">LDFLAGS="-L$PPS_PATH/lib" CPPFLAGS="-I$PPS_PATH/include" ./configure \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                 </span>--prefix=$PATH_NGINX/etc \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                   </span>--sbin-path=$PATH_NGINX/sbin/nginx \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                 </span>--conf-path=$PATH_NGINX/etc/nginx.conf \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--error-log-path=$PATH_NGINX/var/log/error.log \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--http-log-path=$PATH_NGINX/var/log/access.log \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--pid-path=$PATH_NGINX/var/run/nginx.pid \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                   </span>--lock-path=$PATH_NGINX/var/run/nginx.lock \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                 </span>--http-client-body-temp-path=$PATH_NGINX/var/cache/client_temp \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--http-proxy-temp-path=$PATH_NGINX/var/cache/proxy_temp \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                    </span>--http-fastcgi-temp-path=$PATH_NGINX/var/cache/fastcgi_temp \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                        </span>--http-uwsgi-temp-path=$PATH_NGINX/var/cache/uwsgi_temp \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                    </span>--http-scgi-temp-path=$PATH_NGINX/var/cache/scgi_temp \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                      </span>--user=$thisuser \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                   </span>--group=$thisuser \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                  </span>--with-zlib=$MAIN_SRC/$ZLIB \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                        </span>--with-pcre=$MAIN_SRC/$pcre \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                        </span>--with-openssl=$MAIN_SRC/$OPENSSL \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                  </span>--with-http_ssl_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_realip_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                  </span>--with-http_addition_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                        </span>--with-http_sub_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_dav_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_flv_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_mp4_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_gzip_static_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_random_index_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                    </span>--with-http_secure_link_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_stub_status_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-http_v2_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                      </span>--with-mail_ssl_module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                     </span>--with-file-aio \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                    </span>--add-module=$MAIN_SRC/nginx-rtmp-module \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                   </span>--add-module=$MAIN_SRC/ngx_pagespeed-release-$NPS_VERSION \</b></font></div><div><font face="monospace" color="#666666"><b><span style="white-space:pre">                  </span>--with-threads \</b></font></div><div><font face="monospace" color="#666666"><b style=""><span style="white-space:pre">                  </span>--with-ipv6 && make && make install >> $LOG 2>&1</b></font></div></div></div>