кеширование и авторизация

Igor Sysoev is at rambler-co.ru
Fri Aug 21 16:09:45 MSD 2009


On Fri, Aug 21, 2009 at 04:00:45PM +0400, Denis Shaposhnikov wrote:

> On Fri, 21 Aug 2009 15:03:32 +0400
> Igor Sysoev <is at rambler-co.ru> wrote:
> 
> >    location / {
> > 
> >        root  /path/to/cookie_files;
> >        $cookie_NAME  @auth;
> > 
> >        proxy_pass    http://backend;  # без слэша!!
> >        proxy_cache   ...
> >    }
> > 
> >    location @auth {
> >        proxy_pass    http://backend;
> >    }
> 
> А что здесь означает "$cookie_NAME  @auth"? Это просто опечатка или
> работающая конструкция?

-    $cookie_NAME  @auth;
+    try_files  $cookie_NAME  @auth;


-- 
Игорь Сысоев
http://sysoev.ru





More information about the nginx-ru mailing list