gzip if in location example

itpp2012 nginx-forum at nginx.us
Fri Aug 8 09:54:59 UTC 2014


This I suppose:

        location / {
            try_files $uri $uri/ =404;
            if ($scheme = http) { gzip on; }
            index  index.html index.htm;
        }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252407,252409#msg-252409



More information about the nginx mailing list