Welcome! Log In Create A New Profile

Advanced

Re[2]: Проблема: upstream buffer is too small

Илья Винокуров
September 29, 2010 02:58AM
Большое спасибо, Максим!
Реально работает!
Я выяснил в чем была моя ошибка.

> В /realcache/ должен приходить метод HEAD (это достигается через
> proxy_method HEAD в location /precache/), а на реальный сервис
> уйдёт уже GET - заменит cache в location /realcache/.
> Проверил в песочнице - всё работает:
> listen 127.0.0.1:8080;
> location / {
> ssi on;
> }
> location /precache/ {
> proxy_pass http://127.0.0.1:8080/realcache/;
> proxy_method HEAD;
> proxy_pass_request_headers off;
> proxy_pass_request_body off;
> }
> location /realcache/ {
> proxy_pass http://mdounin.ru/;
> proxy_cache one;
> proxy_cache_valid 200 1d;
> }

Если в [location /realcache/] установлена директива [proxy_cache one;], то на бекенд пойдет запрос GET.
А если в [location /realcache/] отключить кеширование (для отладки, как сделал я), то на бекенд пойдет HEAD.

С почтением,
Илья Винокуров.



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

Re[6]: Проблема: upstream buffer is too small

Илья Винокуров September 27, 2010 08:58AM

Re: Проблема: upstream buffer is too small

Olexander Shtepa September 27, 2010 09:08AM

Re: Re[6]: Проблема: upstream buffer is too small

Alexander Petrovsky September 27, 2010 09:08AM

Re: Re[6]: Проблема: upstream buffer is too small

Sergey Shepelev September 27, 2010 09:32AM

Re: Проблема: upstream buffer is too small

Maxim Dounin September 27, 2010 10:02AM

Re[2]: Проблема: upstream buffer is too small

Илья Винокуров September 28, 2010 04:36AM

Re: Проблема: upstream buffer is too small

Maxim Dounin September 28, 2010 08:56AM

Re[2]: Проблема: upstream buffer is too small

Илья Винокуров September 29, 2010 02:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
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