Welcome! Log In Create A New Profile

Advanced

Re: nginx does't serve compressed static .html files. is it a bug?

peter petrov
February 05, 2015 03:30PM
-------- Оригинално писмо --------

От: Francis Daly francis@daoine.org

Относно: Re: nginx dows't serve compressed static .html files. is it a bug?

До: nginx@nginx.org

Изпратено на: 05.02.2015 00:53


On Wed, Feb 04, 2015 at 11:36:04PM +0200, peter petrov wrote:



> In my previous post I explained what tried and didn't manage to it. I

> attached nginx.conf file. I'll

> be very grateful is somebody show me a successful way to do this.



http://nginx.org/r/gzip_static



gzip_static on;



curl -i --compressed http://localhost/file.html



will get file.html.gz if it exists, with "Content-Encoding: gzip";

or file.html if that exists, or 404.



Check the "bytes sent" field in your access_log to see which was

sent. Omit the "--compressed" in the curl command to see the difference.







--

Francis Daly francis@daoine.org



_______________________________________________

nginx mailing list

nginx@nginx.org

http://mailman.nginx.org/mailman/listinfo/nginx


hi again ,
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.



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx dows't serve compressed static .html files. is it a bug?

peter petrov February 04, 2015 04:38PM

Re: nginx dows't serve compressed static .html files. is it a bug?

Francis Daly February 04, 2015 05:54PM

Re: nginx does't serve compressed static .html files. is it a bug?

peter petrov February 05, 2015 03:30PM

Re: nginx does't serve compressed static .html files. is it a bug?

Francis Daly February 05, 2015 04:16PM

Re: nginx does't serve compressed static .html files. is it a bug?

peter petrov February 06, 2015 04:24PM

Re: nginx does't serve compressed static .html files. is it a bug?

Francis Daly February 06, 2015 05:54PM

Re: nginx does't serve compressed static .html files. is it a bug?

peter petrov February 07, 2015 02:58PM

Re: nginx does't serve compressed static .html files. is it a bug?

itpp2012 February 07, 2015 03:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 311
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