<HTML><BODY>
<br><br><br><br>
-------- Оригинално писмо --------
<br>От: Francis Daly francis@daoine.org
<br>Относно: Re: nginx dows't serve compressed static .html files. is it a bug?
<br>До: nginx@nginx.org
<br>Изпратено на: 05.02.2015 00:53
<br><br>On Wed, Feb 04, 2015 at 11:36:04PM +0200, peter petrov wrote:<br>
<br>
> In my previous post I explained what tried and didn't manage to it. I<br>
> attached nginx.conf file. I'll<br>
> be very grateful is somebody show me a successful way to do this.<br>
<br>
<a href="http://nginx.org/r/gzip_static" target="_blank">http://nginx.org/r/gzip_static</a><br>
<br>
gzip_static on;<br>
<br>
curl -i --compressed <a href="http://localhost/file.html" target="_blank">http://localhost/file.html</a><br>
<br>
will get file.html.gz if it exists, with "Content-Encoding: gzip";<br>
or file.html if that exists, or 404.<br>
<br>
Check the "bytes sent" field in your access_log to see which was<br>
sent. Omit the "--compressed" in the curl command to see the difference.<br>
<br>
<br>
<br>
-- <br>
Francis Daly <a href="javascript: internSendMess('francis@daoine.org')">francis@daoine.org</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="javascript: internSendMess('nginx@nginx.org')">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br><br><br>hi again ,<br>Thanks for your help Francis Daly I did what you suggested but it doesn't work. Access.log says both times with --compressed or without it "200 162" for the nginx welcome screen.It is very weird.<br><br><br>
</BODY></HTML>