I have compiled the gzip static module and configured it as follows
gzip on; gzip_static on; gzip_http_version 1.0; gzip_disable "MSIE [1-6]\."; gzip_vary on; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
Then the gz package of js and css is also placed in the same directory as the source file, but I can't see access to gz in the log. Is there any way to confirm that nginx does use the gz package?
HTTP/1.1 200 OK
Server: nginx/1.2.3
Date: Mon, 08 Oct 2012 09:14:20 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
Set-Cookie: sfsess=5072996cb0a46.21449a2b25cb6e546fe695a152ddc5b5; expires=Tue, 09-Oct-2012 09:14:20 GMT; path=/
Content-Encoding: gzip