Ahh now I get it. Makes sense.<br><br>It&#39;s quite an easy fix for me because among the hundreds of gzipped files I have (and no matching .htm files) I only have to make sure that I have an htm version of index.htm.gz lying around since that&#39;s <br>
the only one referenced in 
ngx_http_index_module .<br><br>Thanks for your help and patience Igor.<br><br>Amer.<br><br><div class="gmail_quote">On Sun, Apr 6, 2008 at 4:51 AM, Igor Sysoev &lt;<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Sun, Apr 06, 2008 at 04:36:37AM -0400, Amer Shah wrote:<br>
<br>
&gt; Yes this indeed was the problem. Thanks guys, you&#39;re the best!<br>
&gt;<br>
&gt; What I don&#39;t get though is why when I hit index.htm directly it works (even<br>
&gt; though there is no index.htm but only index.htm.gz) but not when i hit the<br>
&gt; <a href="http://www.hostname.com" target="_blank">www.hostname.com</a> .. In both cases I am using the same client (browser).<br>
&gt; Shouldn&#39;t in both cases, I be served with the gz file ?<br>
<br>
</div>Because your browser supports gzipped content and it (browser) is not<br>
disabled in your configuraiton.<br>
<br>
ngx_http_index_module tests index.htm existance only. It does not know<br>
anything about any .gz files.<br>
<div class="Ih2E3d"><br>
&gt; On Sun, Apr 6, 2008 at 4:26 AM, Dave Cheney &lt;<a href="mailto:dave@cheney.net">dave@cheney.net</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; There is your problem, you need the source, non gzip&#39;ed file for clients<br>
&gt; &gt; that don&#39;t request content-encoding. From my understanding, nginx locates<br>
&gt; &gt; the requested file, then looks aside for a gziped version if gzip_static is<br>
&gt; &gt; enable (and the original file has a matching mime type?)<br>
&gt; &gt;<br>
&gt; &gt; Cheers<br>
&gt; &gt;<br>
&gt; &gt; Dave<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On 06/04/2008, at 6:16 PM, Amer Shah wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; There is no index.htm .. I&#39;m using gzip_static and only have<br>
&gt; &gt; &gt; index.htm.gz there .<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; DX-20070509-049# ls -l /usr/local/www/data/index.htm.gz<br>
&gt; &gt; &gt; -rw-r--r-- &nbsp;1 root &nbsp;www &nbsp;5552 Apr &nbsp;6 03:49<br>
&gt; &gt; &gt; /usr/local/www/data/index.htm.gz<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; 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>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
<br>
</div>--<br>
<div><div></div><div class="Wj3C7c">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div></div></blockquote></div><br>