Welcome! Log In Create A New Profile

Advanced

Re: proxy_nocache

Михаил Монашёв
December 01, 2009 03:54AM
Здравствуйте, Игорь.

IS> Я планирую сделать

IS> location / {
IS> proxy_cache ...

IS> proxy_nocache $some;
IS> proxy_nocache $cookie_some;
IS> }

IS> Эти директивы запрещают кэширование, если указанные переменные
IS> не равны "" или "0".

IS> Кроме того, я хочу сделать директиву proxy_cache_reload:

IS> geo $valid {
IS> default "";
IS> 192.168.1.1 1;
IS> ...
IS> }

IS> proxy_cache_reload $valid;

А правильно ли смешивать в одной директиве if() и саму директиву?

Ранее для ограничения доступа по ip предлагалось использовать allow и
deny, а сейчас geo-модуль?

P.S.
Глубоко не вникал. Что в глаза бросилось, то и написал.

--

С уважением,
Михаил Монашёв, SoftSearch.ru
mailto:postmaster@softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.


_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

proxy_nocache

Igor Sysoev November 30, 2009 03:24PM

Re: proxy_nocache

Никита Кардашин November 30, 2009 03:56PM

Re: proxy_nocache

Peter Leonov November 30, 2009 04:54PM

Re: proxy_nocache

Sergey Shepelev November 30, 2009 06:50PM

Re: proxy_nocache

Никита Кардашин November 30, 2009 11:26PM

Re: proxy_nocache

Igor Sysoev December 01, 2009 03:14AM

Re: proxy_nocache

Михаил Монашёв December 01, 2009 03:54AM

Re: proxy_nocache

Igor Sysoev December 01, 2009 04:02AM

Re: proxy_nocache

dado December 05, 2009 03:02AM

Re: proxy_nocache

Boris Dolgov December 05, 2009 03:36AM

Re[2]: proxy_nocache

Михаил Монашёв December 05, 2009 10:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready