Re: autoindex

Igor Sysoev igor sysoev.ru
16 14:30:12 MSD 2010


On Wed, Jun 16, 2010 at 02:24:14PM +0400, Anton Kiryushkin wrote:

> ,       100 ?

      :

    location /abc/ {
      autoindex off;
    }

 location

    location = /abc/ {
      autoindex on;
            ...
    }

 .

> 2010/6/16 Igor Sysoev <igor at sysoev.ru>:
> > On Wed, Jun 16, 2010 at 01:59:49PM +0400, Igor Sysoev wrote:
> >
> >> On Wed, Jun 16, 2010 at 10:59:41AM +0400, Anton Kiryushkin wrote:
> >>
> >> >   .
> >> >     .
> >> >  :
> >> >
> >> > server {
> >> >     listen 192.168.77.1:80;
> >> >     server_name local.ru;
> >> >     error_log /var/log/nginx/local_nginx.error.log debug;
> >> >     root /tmp ;
> >> >
> >> >     location ~ /$ {
> >> >       allow 192.168.77.64;
> >> >       deny all;
> >> >       root /tmp/;
> >> >       autoindex on;
> >> >       autoindex_exact_size on;
> >> >     }
> >> >     location / {
> >> >         autoindex off;
> >> >         root /tmp/;
> >> >     }
> >> >
> >> >   }
> >> >
> >> >     192.168.77.64  192.168.77.1   403-
> >> > .    .
> >> >       ?
> >>
> >>      nginx':   .
> >
> >   ,  :      location', 
> >    .    "= /":
> >
> >     autoindex_exact_size on; #  : default
> >     root /tmp/;
> >
> >     location ~ /$ {
> >       allow 192.168.77.64;
> >       deny all;
> >       autoindex on;
> >     }
> >
> >     location = / {
> >       allow 192.168.77.64;
> >       deny all;
> >       autoindex on;
> >     }
> >
> >     location / {
> >       autoindex off;   #  : default
> >     }
> >
> >
> > --
> >  
> > http://sysoev.ru
> >
> > _______________________________________________
> > nginx-ru mailing list
> > nginx-ru at nginx.org
> > http://nginx.org/mailman/listinfo/nginx-ru
> >
> 
> 
> 
> -- 
> Best regards,
> Anton Kiryushkin,
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru

-- 
 
http://sysoev.ru



nginx-ru