config file for only static files.

Igor Sysoev is at rambler-co.ru
Sun Apr 6 12:20:52 MSD 2008


On Sun, Apr 06, 2008 at 04:16:49AM -0400, 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.

Because your browser supports gzipped content and it's not disabled
in your configuraiton.

You should have two files: gzipped and ungzipped.
Or you may have ungzipped one only.

> On Sun, Apr 6, 2008 at 4:11 AM, Igor Sysoev <is at rambler-co.ru> wrote:
> 
> > On Sun, Apr 06, 2008 at 04:07:08AM -0400, Amer Shah wrote:
> >
> > > DX-20070509-049# cd /usr/local/www
> > > DX-20070509-049# ll
> > > total 14
> > > lrwxr-xr-x  1 root  wheel    27 Apr  2 21:41 cgi-bin ->
> > > /usr/local/www/cgi-bin-dist
> > > dr-xr-xr-x  2 root  wheel   512 Apr  2 21:41 cgi-bin-dist
> > > drwxr-xr-x  9 root  www    3584 Apr  6 03:45 data
> > > dr-xr-xr-x  2 root  wheel  1024 Apr  2 21:41 data-dist
> > > drwxr-xr-x  3 root  wheel  3584 Apr  2 21:41 icons
> > > drwxr-xr-x  2 www   www     512 Apr  6 03:25 proxy
> > >
> > > It seems www has permissions to /usr/local/www/data
> > >
> > > My error log shows this :
> > >
> > > 2008/04/06 03:44:38 [error] 84393#0: *1 directory index of
> > > "/usr/local/www/data/" is forbidden
> >
> > What does show
> >
> > ls -l /usr/local/www/data/index.htm
> >
> > ?


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list