Check your PHP output header for "Content-Type", if it is not text/html and one of the gzip_types, it won't be compress. Your config I have tested on my server, it will compress normally. MagicBear Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214879,214881#msg-214881