<div dir="ltr">Hi Maxim,<div><br></div><div>Thanks for the Tip.</div><div><br></div><div>It seems that PageSpeed Module was the culprit, after compiling without PageSpeed, GZIP worked perfectly.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 1, 2017 at 6:03 PM Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
On Tue, Oct 31, 2017 at 04:51:31PM +0300, Valentin V. Bartenev wrote:<br>
<br>
> On Monday 30 October 2017 10:33:55 nik mur wrote:<br>
> > Hi,<br>
> ><br>
> > Recently I upgraded my nginx to 1.12 version from 1.10 branch.<br>
> ><br>
> > The build from source went through without any issues, but while starting<br>
> > Nginx I am receiving this error:<br>
> ><br>
> > *>>[emerg] 342#342: unknown directive "gzip" in<br>
> > /usr/local/apps/nginx/etc/conf.d/gzip.conf:2*<br>
> ><br>
> [..]<br>
><br>
> You should check your full configuration. It's unclear where this "gzip"<br>
> directive is included.<br>
><br>
> Please note, there's no such directive in mail and stream modules.<br>
<br>
The message suggests that the directive is indeed unknown, not<br>
just used in a wrong context. When a directive is used in a wrong<br>
context, the message would be "is not allowed here" instead.<br>
<br>
In this particular case I would recommend to compile without any<br>
3rd party modules, likely one of the 3rd party modules screwed up<br>
building due to incorrect hacks used in config script.<br>
<br>
--<br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>