Ahh now I get it. Makes sense.<br><br>It'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'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 <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</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;"><div class="Ih2E3d">On Sun, Apr 06, 2008 at 04:36:37AM -0400, Amer Shah wrote:<br>
<br>
> 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<br>
> though there is no index.htm but only index.htm.gz) but not when i hit the<br>
> <a href="http://www.hostname.com" target="_blank">www.hostname.com</a> .. In both cases I am using the same client (browser).<br>
> Shouldn'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>
> On Sun, Apr 6, 2008 at 4:26 AM, Dave Cheney <<a href="mailto:dave@cheney.net">dave@cheney.net</a>> wrote:<br>
><br>
> > There is your problem, you need the source, non gzip'ed file for clients<br>
> > that don't request content-encoding. From my understanding, nginx locates<br>
> > the requested file, then looks aside for a gziped version if gzip_static is<br>
> > enable (and the original file has a matching mime type?)<br>
> ><br>
> > Cheers<br>
> ><br>
> > Dave<br>
> ><br>
> ><br>
> > On 06/04/2008, at 6:16 PM, Amer Shah wrote:<br>
> ><br>
> > > There is no index.htm .. I'm using gzip_static and only have<br>
> > > 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<br>
> > > /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>
> > ><br>
> ><br>
> ><br>
> ><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>