Welcome! Log In Create A New Profile

Advanced

cache file has too long header

September 23, 2019 01:09PM
Эта ошибка часто в логе для разных файлов. В гугле нашел что это решается увеличением proxy_buffer_size, но он и так у нас 8k.
Подскажите как решить. Версия 1.16.1, OS FreeBSD 11.3. Из-за этой ошибки кеш игнорируется и ресурс запрашивается из апстрима, а это дорогой контент (google maps). Проблема только с этими ресурсами, другие кешируются нормально. Урл не такой уж и длинный, вроде.

Пример ошибки:
2019/09/23 21:04:01 [crit] 95594#100948: *426913488 cache file "/usr/home/nginx/cache/myproj/maps/d/2d/28889e499a0f9ef187ba9fb63270c2dd" has too long header, client: 172.16.1.16, server: assets.example.com, request: "GET /maps/api/staticmap?key=AIzaSyBsXrvwBUBTrAMP0K-uCSJaH2cKU4xLPu4&markers=12.412358%2C53.823786&size=320x100&zoom=11 HTTP/1.1", host: "assets.example.com", referrer: "https://example.com/foo/bar".

proxy_temp_path /usr/home/nginx/temp;
proxy_http_version 1.1;

proxy_headers_hash_max_size 1024;
proxy_headers_hash_bucket_size 128;
proxy_buffer_size 8k;

proxy_connect_timeout 15s;
proxy_send_timeout 5s;

proxy_cache_path /usr/home/nginx/cache/myproj/maps levels=1:2 keys_zone=myproj-maps:128m inactive=30d max_size=8g;
Subject Author Posted

cache file has too long header

rihad September 23, 2019 01:09PM

Re: cache file has too long header

Sergey Kandaurov September 24, 2019 05:26AM

Re: cache file has too long header

rihad September 24, 2019 05:31AM

Re: cache file has too long header

Sergey Kandaurov September 24, 2019 05:48AM

Re: cache file has too long header

rihad September 25, 2019 10:03AM

Re: cache file has too long header

rihad September 24, 2019 09:11AM

Re: cache file has too long header

rihad September 24, 2019 10:35AM

Re: cache file has too long header

rihad September 24, 2019 10:37AM

Re: cache file has too long header

rihad September 24, 2019 10:56AM

Re: cache file has too long header

Sergey Kandaurov September 24, 2019 09:56AM

Re: cache file has too long header

rihad October 27, 2019 07:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready