Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: v1.0.4, bugreport: location directive



On Thu, Jun 16, 2011 at 08:02:38PM +0400, Alexander Kochetov wrote:
> 16  2011. 19:36  ruv <nginx-forum@xxxxxxxx> :
> >   
> > (  )
> >
> > index index.html ;
> > location = / {
> > }
> > location / {
> >  rewrite ^ / redirect ;
> > }
> 
>   /       /index.html
>      location'   location / {
> 
> 
> > location / {
> >  rewrite ^ / redirect ;
> > }
> > location /test {
> >  rewrite ^ /unavailable.gif ;
> > }
> >
> >   "/test"   
> 
>   ,     location,  rewrite, 
>     location'
>  /unavailable.gif    .
>     
> rewrite ^ /unavailable.gif  break;

     .

location /test {
    alias  /path/to/unavailable.gif;
}


-- 
Igor Sysoev

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.