config file for only static files.

Dave Cheney dave at cheney.net
Sun Apr 6 12:26:47 MSD 2008


There is your problem, you need the source, non gzip'ed file for  
clients that don't request content-encoding. From my understanding,  
nginx locates the requested file, then looks aside for a gziped  
version if gzip_static is enable (and the original file has a matching  
mime type?)

Cheers

Dave

On 06/04/2008, at 6:16 PM, Amer Shah wrote:
> There is no index.htm .. I'm using gzip_static and only have  
> index.htm.gz there .
>
> DX-20070509-049# ls -l /usr/local/www/data/index.htm.gz
> -rw-r--r--  1 root  www  5552 Apr  6 03:49 /usr/local/www/data/ 
> index.htm.gz
>
>
> Also note that when i do www.hostname.com/index.htm , it works fine.






More information about the nginx mailing list