Welcome! Log In Create A New Profile

Advanced

NGINX on CentOS with GZIP issues

Posted by adriani 
NGINX on CentOS with GZIP issues
January 19, 2011 06:07AM
Hello all,

I have an issue with making GZIP work with NGINX, and I've struggling for a while now.

Here is my nginx.conf part regarding the gzip:


gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 1;
gzip_proxied any;
gzip_types application/x-javascript;
#gzip_min_length 1100;
# make sure gzip does not lose large gzipped js or css files
# see http://blog.leetsoft.com/2007/7/25/nginx-gzip-ssl
#gzip_buffers 16 8k;

in mime types I have this:

application/x-javascript js gz;

The response header of a js.gz file is this:
Server nginx/0.8.54
Date Wed, 19 Jan 2011 10:55:09 GMT
Content-Type application/x-javascript
Last-Modified Tue, 18 Jan 2011 11:49:55 GMT
Transfer-Encoding chunked
Connection keep-alive
Vary Accept-Encoding
Content-Encoding gzip

If I look at the response, everything is just a bunch of weird characters.

Any ideas why it's not working ?

Thank you very much in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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