В письме от 19 февраля 2016 09:00:08 пользователь trace написал:
> set $nocache_router 0;
> if ($http_user_agent ~ "Apache-HttpClient") {
> set $nocache_router 1;
> }
Здравствуйте!
Попробуйте для начала цитируемое заменить на
map $http_user_agent $nocache_router {
default 0;
~Apache-HttpClient 1;
}
Подробнее: https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru