Welcome! Log In Create A New Profile

Advanced

[Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur
October 30, 2017 06:34AM
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*
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

[Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur October 30, 2017 06:34AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

tokers October 30, 2017 06:56AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur October 31, 2017 03:36AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

Valentin V. Bartenev October 31, 2017 09:52AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur October 31, 2017 10:04AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

Maxim Dounin November 01, 2017 08:34AM

Re: [Module] ngx_http_gzip issue : unknown directive "gzip"

nik mur November 02, 2017 04:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready