[Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur nikhil6018 at gmail.com
Mon Oct 30 10:33:55 UTC 2017


Hi,

Recently I upgraded my nginx to 1.12 version from 1.10 branch.

The build from source went through without any issues, but while starting
Nginx I am receiving this error:

*>>[emerg] 342#342: unknown directive "gzip" in
/usr/local/apps/nginx/etc/conf.d/gzip.conf:2*

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.

Can anybody guide me in the right direction what's the issue here.

Here is my configure script for reference

*LDFLAGS="-L$PPS_PATH/lib" CPPFLAGS="-I$PPS_PATH/include" ./configure \*
* --prefix=$PATH_NGINX/etc \*
* --sbin-path=$PATH_NGINX/sbin/nginx \*
* --conf-path=$PATH_NGINX/etc/nginx.conf \*
* --error-log-path=$PATH_NGINX/var/log/error.log \*
* --http-log-path=$PATH_NGINX/var/log/access.log \*
* --pid-path=$PATH_NGINX/var/run/nginx.pid \*
* --lock-path=$PATH_NGINX/var/run/nginx.lock \*
* --http-client-body-temp-path=$PATH_NGINX/var/cache/client_temp \*
* --http-proxy-temp-path=$PATH_NGINX/var/cache/proxy_temp \*
* --http-fastcgi-temp-path=$PATH_NGINX/var/cache/fastcgi_temp \*
* --http-uwsgi-temp-path=$PATH_NGINX/var/cache/uwsgi_temp \*
* --http-scgi-temp-path=$PATH_NGINX/var/cache/scgi_temp \*
* --user=$thisuser \*
* --group=$thisuser \*
* --with-zlib=$MAIN_SRC/$ZLIB \*
* --with-pcre=$MAIN_SRC/$pcre \*
* --with-openssl=$MAIN_SRC/$OPENSSL \*
* --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-http_v2_module \*
* --with-mail_ssl_module \*
* --with-file-aio \*
* --add-module=$MAIN_SRC/nginx-rtmp-module \*
* --add-module=$MAIN_SRC/ngx_pagespeed-release-$NPS_VERSION \*
* --with-threads \*
* --with-ipv6 && make && make install >> $LOG 2>&1*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20171030/26949bf8/attachment.html>


More information about the nginx mailing list