Problem with GZIP

firestorm nginx-forum at
Thu Sep 29 14:16:21 UTC 2011

I have ubuntu server 10.04, nginx 1.1.4(compiled) and my gzip support is
not working. This is my configuration:

nginx: nginx version: nginx/1.1.4
nginx: built by gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
nginx: TLS SNI support enabled
nginx: configure arguments: --user=www-data --group=www-data
--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_gzip_static_module --with-http_random_index_module
--with-http_secure_link_module --with-http_stub_status_module

my nginx configuration is:

http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local]
"$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    tcp_nodelay     on;
    tcp_nopush      off;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    gzip on;
    gzip_min_length 1000;
    gzip_comp_level 6;
    gzip_proxied expired no-cache no-store private auth;
    gzip_types text/plain application/xml;
    #gzip_disable "MSIE [1-6]\.";

    server {
	listen 80;
	server_name localhost;

	#access_log /var/log/nginx/alfaomega.access_log main;
	#error_log /var/log/nginx/alfaomega.error_log info;

	root /var/www/alfaomega/web;
	charset utf-8;

       location = / {
	   index index.php;

#Other locations


Posted at Nginx Forum:,216030,216030#msg-216030

More information about the nginx mailing list