Nginx + Ubuntu 9.10, gzip not functioning

gzipnginxweb-server

So I installed and configured Nginx 0.7.62 on a new Slicehost Ubuntu 9.10 slice.

All seems to work fine with the server, except that gzip isn't working for one reason or another. I made sure that it's setting were correct in /etc/nginx/nginx.conf:

user www-data;
worker_processes 3;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
    worker_connections 1024;
    # multi_accept on;
}

http {
    include /etc/nginx/mime.types;
    access_log /var/log/nginx/access.log;

    sendfile on;
    #tcp_nopush on;

    keepalive_timeout 2;
    tcp_nodelay on;

    gzip on;
    gzip_comp_level 2;
    gzip_proxied any;
    gzip_types text/plain text/css application/x-javascript;
    gzip_disable "MSIE [1-6]\.";

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}

This normally wouldn't be a big deal, but gzip support could save considerable bandwidth for my site. Does anyone have any ideas of what to check, or has anyone else run into this problem?

Best Answer

Thanks for everyone's help. I managed to figure it out... (bizarre, still not sure why)

In Ubuntu 9.10, Nginx 0.7.62:

  1. I first tried using gzip_disable "MSIE [1-6]."; #still broken
  2. I then switched it to gzip_disable "msie6"; #still broken
  3. I commented out the gzip_disabled line altogether #fixes the problem

Hope this saves someone else some time.