Yes this indeed was the problem. Thanks guys, you're the best!<br><br>What I don't get though is why when I hit index.htm directly it works (even though there is no index.htm but only index.htm.gz) but not when i hit the <a href="http://www.hostname.com">www.hostname.com</a> .. In both cases I am using the same client (browser). Shouldn't in both cases, I be served with the gz file ?<br>
<br><div class="gmail_quote">On Sun, Apr 6, 2008 at 4:26 AM, Dave Cheney <<a href="mailto:dave@cheney.net">dave@cheney.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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?)<br>
<br>
Cheers<br><font color="#888888">
<br>
Dave</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 06/04/2008, at 6:16 PM, Amer Shah wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
There is no index.htm .. I'm using gzip_static and only have index.htm.gz there .<br>
<br>
DX-20070509-049# ls -l /usr/local/www/data/index.htm.gz<br>
-rw-r--r-- 1 root www 5552 Apr 6 03:49 /usr/local/www/data/index.htm.gz<br>
<br>
<br>
Also note that when i do <a href="http://www.hostname.com/index.htm" target="_blank">www.hostname.com/index.htm</a> , it works fine.<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>